Declare a memory variable or array local to the current procedure and optionally assign a data type and value
LOCAL <variable1> [AS <datatype>] [, <variable2> [AS <datatype>] [,...]
The LOCAL command declares memory variables or arrays to be local to a procedure, function or program. When the procedure, function or program returns, then all of the memory variables and arrays that were declared by the LOCAL command are released.
The memory variables are initially declared as logicals with the value .F.(if CLIPPER is set ON they are defined as 'U'). If the optional = <value> clause is included, then the specified value is assigned to the variable.
Memory variables and arrays declared with the optional AS <datatype> clause are subject to data type checking when a value is assigned. An attempt to assign a value of an incompatible data type will fail and return error 306. The following <datatype> values can be specified:
LOCAL variables differ from PRIVATE variables in that a LOCAL variable is not visible to lower level procedures or functions.
local cTmpbuf ? cTmpbuf .F.