Passing variable in sequence???


moose2004

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.