Language Reference Guide : 7. Preprocessing Your 4GL Code : Preprocessor : Built-in Macro Variables
 
Share this page                  
Built-in Macro Variables
OpenROAD defines built-in macro variables during preprocessing. You can use them in your 4GL scripts, but you must not change their values.
The built-in macro variables are:
$_ApplicationName
Specifies the name of the current application
$_CurFld
Specifies the full name of the current field, for example: fldname, comp.fldname, or tblfd[*].fldname (defined in field scripts only)
$_CurFldRow
Specifies the current row of a table field array, for example: tblfd[ ].fldname (defined in field scripts only)
$_ComponentName
Specifies the name of the current frame, procedure, or user class
$_ShortRemark
Specifies the short remark specified when the current frame was created
$_DefaultReturnValue
Specifies the default value appropriate for the return type of the current frame or procedure. This cannot be used with methods for a user class script.
For example, a field script can refer to $_CurFld, but the compiler only sees the name that is substituted, such as "composite.fieldname." This is a generic way to refer to the current field in field scripts.
The following subsections describe the preprocessor statements that you can use in 4GL scripts.