Jump to content
Macro Express Forums

Clearing a Variable

interactive dj

Recommended Posts

Just an observation - now that I have over come the problem which was:

I had a loop which needed to pick the file name of a file add it to a variable then go round the loop again until I said stop.

Here is my test macro

<TVAR2:14:01:><REP3:08:000001:000001:0019:0:01:B><TVAR2:19:01:""><MENU2:2:T:19:CenterCenter:Adding email file attachmentsDo you wish to ADD one or more attachmentsYes

No/FinishedT><TVAR2:20:09:Email attachment file><TMVAR2:07:14:00:000:000:%T20%><DIS:<CLEARVAR1:T:20:20><DIS:<TVAR2:20:01:""><ENDREP><TBOX4:T:1:CenterCenter000278000200:000:Testing Attachment string%T14%>


What I have found is that clearing a test string using set variable to ""

and Clearing a variable have different results on the command to set a variable to a file name.


The problem was if i used set varaible to "" (ie null string) the command set variable to file name would not appear and return a null string


It took me ages to think of using the Clear variable command


So these are my comments so others might not fall into the same hole.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...