03-04-2012, 08:12 PM
I like to use when I can so the function will run asynchronously (in a separate thread) which speeds things up. But when I need a variable returned, I call the function as a function (i.e. without
But I am aware that mac can be used as a function but when I try it, my return variables get messed up:
I know that you have to put in an extra "" for command variable:
Macro MacFunctionTest
Function UpperCaseFunc
When I run this I get the following RT error:
I am not sure if I should be putting the & in front of string references, using lpstr or what?
Any ideas?
Also if in a function I call several other functions as mac, will they not each run in a separate thread (several at a time) or only one at a time?
The reason I ask is I see this in help menu under "mac":
Thanks,
S
Quote:mac "...".
But I am aware that mac can be used as a function but when I try it, my return variables get messed up:
I know that you have to put in an extra "" for command variable:
Quote:Something to be stored into the _command variable.
Macro MacFunctionTest
Function UpperCaseFunc
When I run this I get the following RT error:
Quote:Error (RT) in UpperCaseFunc: invalid pointer. ?
I am not sure if I should be putting the & in front of string references, using lpstr or what?
Any ideas?
Also if in a function I call several other functions as mac, will they not each run in a separate thread (several at a time) or only one at a time?
The reason I ask is I see this in help menu under "mac":
Quote:Two macros cannot run simultaneously. If both items (this thread and macro) are macros (not functions, etc), macro starts when this thread ends. If only macro is macro, is applied "If a macro is running" property.S
Thanks,
S