7. Embedded SQL for Pascal : Preprocessor Operation : Include File Processing : Source Code with Labels
 
Share this page                  
Source Code with Labels
Some Embedded SQL statements generate labels. If you include a file containing such statements, you must be careful to include the file only once in a given Pascal scope. Otherwise, you may find that the compiler later complains that the generated labels are multiply defined in that scope.
The statements that generate labels are the Embedded SQL block-type statements, which are:
select-loop
display
formdata
tabledata
unloadtable

submenu
You must also issue the exec sql label statement in the same scope as the label-generating statement.