Remove a variable?

Multimedia Builder (Legacy Forum)
Post Reply
polartech
Posts: 81
Joined: Sun Oct 31, 2010 3:29 am
Location: York, UK

Remove a variable?

Post by polartech »

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

Is there some simple code to do this?

dgilmour
Posts: 541
Joined: Fri Oct 22, 2010 11:29 am
Location: Moskva, Rusko
Contact:

Re: Remove a variable?

Post by dgilmour »

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

polartech
Posts: 81
Joined: Sun Oct 31, 2010 3:29 am
Location: York, UK

Re: Remove a variable?

Post by polartech »

That works perfectly, thanks mate!

Should be in the Help file :)

Cheers.

Post Reply