moose2004 Posted April 19, 2010 Share Posted April 19, 2010 How do you pass a variable in a beqinsq(functionName(var))?? I know how to pass it like this functionName(var) but is it possible to do in the beginseq call? Link to comment Share on other sites More sharing options...
AzeoTech Posted April 19, 2010 Share Posted April 19, 2010 No, you'd have to use a global variable, or if you want to be real fancy, create a class and start a thread from within the class. If you aren't creating a big app and haven't done any OOP, stick with the globals. I'd probably name the globals after the sequence name. Something like: sequenceName_varname Sequences started with beginseq() are not reentrant (i.e. if you call beginseq() while a sequence is already running, it won't start), so there is no issue there. Note that sequences called as functions are reentrant, so make sure you use globals to pass parameters only with sequences started with beginseq() and not called as functions. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.