ADR()

ADR(V)

RETURNS THE ADDRESS OF VARIABLE V

  • Type: Function
  • Parameter: 1
  • Group: Mathematics

ACTION

The function ADR(V) returns the address of the variable V.

The variable must be a simple variable (not an element of array), integer, real or string.

SYNTAX: Result=ADR(V)

  • V = variable name.

USE

  • The function ADR() is used to pass the address of a variable to a DLL function.

ERROR

  • If V does not exist (not declared).
  • If V is not a simple variable.
  • If V is not a correct expression.

EXAMPLE

dim a%,b,c$

print adr(a%)

print adr(b)

print adr(c$)

SEE ALSO

DIM

DIM_LOCAL

FREE