2. Writing Scripts and Procedures : Procedures : Local Procedures
 
Share this page                  
Local Procedures
You can use a local procedure in 4GL to code a callable procedure for a single frame, field, procedure, or user class script.
Although you define local procedures in the frame, field, procedure, or user class script in which they are called, you must declare a forward reference before you can define a local procedure. Put the forward reference in the declare block for the script in which the local procedure is defined.
You define local 4GL procedures directly in the frame, field, procedure, or user class script using the procedure statement as described in the following section.
Use the callproc statement to call a local procedure defined in the current frame or procedure. For more information see the Language Reference Guide online help.