PA_Dial4DGetArrayReal


version 2003


PA_Dial4DGetArrayReal (dialog; variable; index) → double

Parameter Type Description
dialog PA_Dial4D Dialog reference
variable char* Name of the array to access
index long Element to access in the array
Function result double Value 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.