Skip to main content

CODE

This script will obtain the output from another button using a name.


FORMAT: CODE "button_name"


DEFINITIONS:

  • button_name: A string with the name of a button in the code input window.

EXAMPLE 1:

$stat = code "TOTAL"
show $stat

Obtain the output of the button with the name "TOTAL" and use it in the variable $stat. Display it with the SHOW command.

EXAMPLE 2:

$stat = code "TOTAL" IN WINDOW "CW2"
show $stat

Obtain the output of the button with the name "TOTAL" from the window called "CW2" and use it in the variable $stat. Display it with the SHOW command. The codification window where the referenced button is must be open when the report is run.