Technical Support Contact Us   

PC Access for Windows Reference Guide

for PC Access Version 4.30


(Contents)(Previous)(Next)

Script Command: label

Format:

label LABEL_NAME;

The label command lets you break a script file into sections (or blocks). You can use labels to isolate one block of the script file from another. You can use the goto command to transfer execution to a particular block of the script file. You can have as many labels as you need in a script file. The label name must be all UPPERCASE characters.

Every script file must have at least one label. No commands other than include, define, or comments can appear before the first label. All commands after a given label belong to its block until the next label command.

Example:

// Comments are OK before a label

#include "master.inc" // This is OK as well

label START; // First label, we can now use other commands

send "HELLO"; // Part of START block

send "WORLD"; // Part of START block

label LOGIN; // Next label

send "FIRST NAME"; // Part of LOGIN block

Back to script command list.


(Contents)(Previous)(Next)

[Contents] [Search] [Glossary of Terms]


Tell me more about this site.
Can't find what you need? See: How to Find It.
Contact us
Report a problem with this page or suggest an improvement for this page.

Last modification date: Friday, January 17, 2003 00:58:47

 

Copyright © 2005 - MFM Software, Inc.
11988 Tramway Drive
Cincinnati, OH 45241
Phone: 513.733.9229
Fax: 513.733.8775
Send comments to webmaster@mfm.com