04-30-2014 08:59 AM
what is a clean method to Goto(jump ) to a Step in another Sub Seq
I will carry this out from an Statement- expression where I have the code to select on basis of Button press.
eg
(FileGlobals.BVal==1)?(FileGlobals.ProgramModeGlobal=0):
( (FileGlobals.BVal==2)?(FileGlobals.ProgramModeGlobal=4):
( (FileGlobals.BVal==4)?( " JUMP TO STEP IN PREUUTLOOP TO SELECT OTHER FILE") :
(FileGlobals.ProgramModeGlobal=99) ) )
04-30-2014 10:04 AM - edited 04-30-2014 10:05 AM
You can't really jump to steps in another sequence. What I would recommend instead is more straight forward logic in your sequence and a parameter passed into it so that it jumps to the right step based on the parameter you pass to the sequence due to the first step in that sequence checking the parameter and going to the correct corresponding location.
-Doug