Preform trigger procedure to execute before a form is displayed
SET PREFORM TO [<procedure-name> | (<expC>)]
The PREFORM trigger procedure executes a procedure upon entering a form. The SET PREFORM TO <procedure-name> command defines the procedure or program name to be executed. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. The SET PREFORM TO command clears the active <procedure-name>.
The SET PREFORM trigger can also be defined from within the SCREEN PAINTER work surface. The PREFORM procedure option from the TRIGGERS menu is used to define the trigger name. The [HELP] key may be pressed here to edit the trigger file from inside the SCREEN PAINTER.
procedure intiform // Display the contents on a memo memosay(comp_hist,2,17,15,61) return select 1 use payroll alias payroll set form to formname set preform to initform edit