info("labels")

The info(“labels”) function lists the labels in the current procedure.


Description

This function lists all of the labels in the current procedure. Each label is listed on a separate line: These labels can be used as targets to the goto and shortcall statements. (Note: The labels are not guaranteed to be listed in the same order that they appear in the procedure.)

For example, suppose you have a procedure with several labels like this:

start:
...
task1:
...
task2:
...
task 3:
...
END:

The result of the info(“labels”) function will be something like this:

task2
start
task1
task3
END

Note: You may see extra labels you aren’t expecting that begin with a colon, for example :IF:2, :LOOP:4, :ENDIF:17 etc. These are internal labels generated by Panorama to facilitate the operation of IF, LOOP, and other control flow statements. You will usually want to ignore these internal labels, but they are included because they are valid labels in the code.


See Also


History

VersionStatusNotes
10.0NewNew in this version