Local fields have two kinds of use: displaying data and holding data
Local fields can only be accessed in the procedures below or to the right of the one in which they are defined.
The data type of a local field is defined as one of the following (as for database fields):
| Character |
C |
|
Date |
D |
| Integer | I |
| Long integer | L |
| Mixed case character | M |
| Number | N |
| Pseudo numeric (digit only character field) | P |
| Time | T |
| Upper case character | U |
| Word string | W |
| Yes/No | Y |
To set up a local field for display purposes:
To modify a variable that is not displayed:
Select the Formula option and enter a new value for the field or a formula to calculate the value
The local field @ is provided for use as a temporary holding variable. You may redefine this variable any number of times in your program and as any type or length. You may redefine @ within a single procedure.
@ is an efficient method of displaying fields that do not need to be remembered, such as the result of a calculation or the input field for a Press any key to continue message. Do not use it in totalling or for testing entered values.