%LOC

Built-in Function: Computes the internal address of a storage item.

Syntax

result = %LOC (a)

a
(Input) Is the name of an actual argument. It must be a variable, an expression, or the name of a procedure. (It must not be the name of an internal procedure or statement function.)

The %LOC function produces an integer value that represents the location of the given argument. This value is INTEGER(4) on Windows systems; INTEGER(8) on OpenVMS, Tru64 UNIX, and Linux systems. You can use this integer value as an item in an arithmetic expression.

The LOC intrinsic function serves the same purpose as the %LOC built-in function.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB