Get pointer

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 3


Get pointer (varName) Pointer

ParameterTypeDescription
varNameStringName of a process variable
Function resultPointerPointer to process variable

Description

The command Get pointer returns a pointer to the variable whose name you pass in varName.

To get a pointer to a field, use Field. To get a pointer to a table, use Table.

Note: You cannot pass to Get pointer an expression such as $tTabNom+"{3}". Only variable names are allowed.

Example

In a form, you build a 5 x 10 grid of enterable variables named v1, v2... v50. To initialize all of these variables, you write:

      ` ...
   For ($vlVar;1;50)
      $vpVar:=Get pointer("v"+String($vlVar))
      $vpVar->:=""
   End for

See Also

Field, Table.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next