Skip to content

Address Type

Obsolete

The Address data type is obsolete. Use Pointer instead.

DataFlex Address types are used to declare variables for storing the memory address of a variable.

You can assign a value to an address variable with the AddressOf function. This command retrieves the memory address of a named variable and returns it to the Address variable.

String sName
Address aNameVar
Move 'John' to sName
Move (AddressOf(sName)) to aNameVar

The above example first declares a string variable. Next, a value is assigned to the string, which allocates memory to the string. Finally, the memory address of the string is stored in the address variable aNameVar.

Notes: - A variable's address is not allocated until a value is first assigned to it. - When string variables grow in size, their address in memory may change.

Range

  • For 32-bit: 0 to 4,294,967,295
  • For 64-bit: 0 to 18,446,744,073,709,551,615

Note

For more information, refer to Declaring Variables and the Address command.