Skip to content

ENTER PUBLIC

FUNCTION

This command is used to receive values passed to a public script from the RUN PUBLIC command.

SYNTAX

ENTER PUBLIC [variable [, variable] ...]
variable
a 3GL variable.

NOTES

  • This command receives values in a public script, and upon termination, returns values to the invoking script.
  • The ENTER PUBLIC command is only allowed in public scripts. Use the RUN PUBLIC command to execute public scripts.
  • A public script must contain the ENTER PUBLIC command as the first command line in the script after the data declaration.
  • ENTER PUBLIC can receive and return values that are 3GL variables. The 3GL variables can then be moved to data names contained within the public script.
  • If values are passed to the public script, the ENTER PUBLIC command must have a corresponding RUN PUBLIC command in the invoking script, and the list of values, variables, and names in both scripts must agree in type.
  • When the public script is terminated, execution returns to the invoking script at the statement following the RUN PUBLIC.

EXAMPLES

ENTER PUBLIC G$, M$

SEE ALSO

RUN, and the section on Different Types of Scripts in the Script-IV Developer Guide.

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF