Tuesday, October 19, 2021
Tip of the Day: Detecting Multiple LABELs within a Command File
Product.......: R:BASE X.5 and R:BASE X.5 Enterprise (Version 10.5)
Build.........: 10.5.4.11007 or higher
Sections......: R:BASE Editor
Keywords......: R:Style, LABEL, Command File, GOTO, WHENEVER
Did you know that you can now easily detect multiple LABEL
commands within a command file?
R:Style has been enhanced to detect and report when duplicate
LABEL names (two identical instances) appear within a single
command file.
In a GOTO or WHENEVER command, the LABEL command is used to
identify the command line to which control should be passed.
The added detection will help prevent an unintended branch
target of a GOTO or WHENEVER command.
Using LABELs
-------------
After a command file is run once, R:BASE stores the LABEL
commands in memory. When the command file is run again,
R:BASE retrieves the location of a label when the GOTO or
WHENEVER is run. However, if the GOTO or WHENEVER command is
going to be run only once, place the LABEL command below the
GOTO or WHENEVER command because it is more efficient for
R:BASE to search downward in the command file for the matching
LABEL.
Very Best R:egards,
Razzak.
R:BASE Technologies, Inc.
https://www.rbase.com
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/1N6tSF-1mmI4G1rPb-018G0A%40mrelay.perfora.net.