Remove a variable?

Multimedia Builder

Remove a variable?

Postby polartech » Fri Jan 10, 2020 3:28 am

Is it possible to forget/remove an object`s assigned variable string?

Is there some simple code to do this?
polartech
 
Posts: 82
Joined: Sun Oct 31, 2010 3:29 am
Location: York, UK

Re: Remove a variable?

Postby dgilmour » Fri Jan 10, 2020 5:47 am

The only way is to assign an empty value to it:
Code: Select all
var$ = ''

To prevent unexpected results in a script, check if the variable doesn't contain empty string:
Code: Select all
If (var$ <> '') Then
** do things
End
dgilmour
 
Posts: 536
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko

Re: Remove a variable?

Postby polartech » Fri Jan 10, 2020 5:47 pm

That works perfectly, thanks mate!

Should be in the Help file :)

Cheers.
polartech
 
Posts: 82
Joined: Sun Oct 31, 2010 3:29 am
Location: York, UK


Return to MMB

Who is online

Users browsing this forum: No registered users and 1 guest