Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When Target replacement options

Status
Not open for further replies.

sci72

Technical User
May 29, 2004
28
US
Hello all,
I use the "when target" command in several location to handle prompts that occur that are not always encountered and it works great. there is one situation where I need to respond to a not so common prompt by recognizing it and jumping to a later section of code. Obviosly "When Target" plus a Goto command doesn't work, and you from what I understand cannot pass a variable back from the called sub procedure. Any recomendations for an alternative that would allow me to recognize a specific error code and then jump to a later section of the script. Thanks.
 
Hey me, I found it,

apparently you can pass global strings back to the main procedure, I tried it with s0 and after assigning a value of "1" in the sub procedure it passed the value back to the main procedure and I could perform a "IF STRICMP" check then followed by a GOTO command when the string was "1".
Works perfectly, thanks for reading this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top