EVAL TEXT
From Macros Wiki
Command
- EVAL_TEXT <string variable>
Evaluate any variables stored in a text variable and save the resulting text back to the variable.
- You need to use this command if you are building up a string variable using the same variable with different values.
Parameters
- <string variable>
- a string variable, for example a$
Example
- i = 1
- a$ = "i = %i"
- i = 2
- a$ = a$ + " and now i = %i"
- Message a$ ( this will display the text "i = 2 and now i = 2"
- i = 1
- a$ = "i = %i"
- EVAL_TEXT a$
- i = 2
- a$ = a$ + " and now i = %i"
- Message a$ ( this will display the text "i = 1 and now i = 2"
- For an example macro see Process_Data