MEMVAR ListOfVariableNames FIELD ListOfFieldNames [IN Alias]Unaliased references to the names specified by MEMVAR will be assumed to be variables. Similarly, unaliased names specified by FIELD will be assumed to be fields.
FIELD->Amount (or Customer->Amount) MEMVAR->Amount (or M->Amount)If a similar enhancement is introduced to VFP, most of the time "m." will no longer be needed and accurate references can still be achieved. For example, the following lines are a variation of Clipper's implementation for declaring names which will be default to memory variable rather than field names in subsequent code:
MEMVAR LOCAL VariableList (or a short form: MLOCAL VariableList) MEMVAR PRIVATE VariableList (or a short form: MPRIVATE VariableList)Of course, our existing declaration syntax will work without any change (giving precedence to fields):
LOCAL VariableList PRIVATE VariableListSimilarly, we may declare parameters using one of the following statements:
MEMVAR LPARAMETERS VariableList (or a short form: MLPARAMETERS VariableList) MEMVAR PARAMETERS VariableList (or a short form: MPARAMETERS VariableList) LPARAMETERS VariableList PARAMETERS VariableListBen