PA_Dial4DGetArrayReal

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_Dial4DGetArrayReal (dialog; variable; index) double

ParameterTypeDescription
dialogPA_Dial4DDialog reference
variablechar*Name of the array to access
indexlongElement to access in the array
Function resultdoubleValue of the element of the array variable

Description

The routine PA_Dial4DGetArrayReal retrieves a real from an array of long integers/reals or integers.

variable is the name of an array of long integers/reals or integers. This array can be created from the plug-in using PA_Dial4DNewArrayReal, or it can be created using 4th Dimension code in the form.

By default, variable needs to be a null terminated C string. If you have previously called PA_UsePStrings you must pass a Pascal string to the command.

By default, variable needs to use Macintosh characters set on Macintosh, and ANSI characters set under Windows. You can call PA_UseMacCharacters or PA_UseAnsiCharacters to specifically use Macintosh or ANSI characters.

Example

Get the current value of a real array.

   double Dial4D_GetCurrentRealElement( PA_Dial4D ref, char *variable)
   {
      long   index = PA_Dial4DGetLong( ref, variable );
      return PA_Dial4DGetArrayReal( ref, variable, index );
   }

See Also

PA_Dial4DNewArrayReal, PA_Dial4DSetArrayReal.

Error Handling

None.


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next