LOCAL

From Recital Documentation Wiki
Revision as of 11:43, 17 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

LOCAL

Class

Memory Variables


Purpose

Declare a memory variable or array local to the current procedure


Syntax

LOCAL <memvar list> | <array name>


See Also

DECLARE, DIMENSION, DISPLAY MEMORY, DO, FUNCTION, PRIVATE, PROCEDURE, PUBLIC, RELEASE, RESTORE, SAVE, SET CLIPPER, STORE


Description

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., unless SET CLIPPER is ON, in which case they are undefined.

LOCAL variables differ from PRIVATE variables in that a LOCAL variable is not visible to lower level procedures or functions.

See DECLARE or DIMENSION for more details on array declaration.


Example

local cTmpbuf
? cTmpbuf
.F.


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer