onerror (Windows CE 5.0)
This command specifies a label where control should be transferred in the case of an error.
onerror [label]
- label
Specifies the label to branch to if a script command returns an error. Labels are specified as in MS-DOS batch files by starting a line with a colon followed by the label's name.
This command lets you define a label where control is transferred if any script command generates an error. You can specify different labels for different areas of a script. An error label remains current until another onerror command is executed.
Send Feedback on this topic to the authors