5 Subroutine Creating Procedure 5 - 1 NA Project The following is a procedure to set subroutines on events and actions on the component placed on the screen. 1. Put a button and a data display component on a Page screen. 2. Enter a variable which is to be assigned to the data display component in Global Variables table. [Example] A single type variable Disp_Val is registered. 3. Enter the variable of the previous section, Disp_Val, in Conditional Expression/Operation field in Data display component property. 4. Choose Click in Events field of Events and Actions. Enter the subroutine’s name in SubroutineName to assign the subroutine to the action. [Example] SubroutineName: Data_Calc NOTE:
The frame of Subroutine Name field is red (means error) because the subroutine code has not been described yet at this point. 5. If you want to describe the subroutine code in Global subroutine, enter the subroutine name with its global subroutine group name. 25