Question on SkipLabel

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
migro
Macro Veteran
Posts: 152
Joined: Thu Nov 06, 2003 5:23 pm
Location: Germany
Contact:

Question on SkipLabel

Post by migro » Mon Nov 01, 2010 12:44 am

I tried to use SkipLabel to jump out of a subroutine but the script jumps not to the label: "NoValidID" where a message should be displayed, it jumps every time to the beginning of the script. Any ideas?

Code: Select all

SRT>GetPatData
   GetDialogProperty>Dialog1,SrcPatID,Text,strSrcPatID
   IF>{(%strSrcPatID% ="") OR (%strSrcPatID% = %str123%)}
      SkipLabel>NoValidID
   ELSE
      Gosub>RequestPatData
   ENDIF
End>GetPatData
regards
migro

User avatar
JRL
Automation Wizard
Posts: 3525
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Nov 01, 2010 3:20 am

The code snippet isn't very informative from the perspective of diagnosing your problem. One thought though. Are you calling the subroutine from a dialog.

Help for SkipLabel> says:
Note: SkipLabel is not supported by dialog event handler subroutines.
A funny thing about this help topic. If I simply go to "Command Reference" using the icon provided in the editor then select "SkipLabel" from the list, I don't see this helpful tidbit. However, I originally pressed F1 for help while my cursor was on the line containing "SkipLabel>". The help that pops up then DOES contain the above quoted message. There seem to be two versions of help for SkipLabel>.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts