PA_Dial4DGetString

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

version 2003


PA_Dial4DGetString (dialog; variable; string)

ParameterTypeDescription
dialogPA_Dial4DDialog reference
variablechar*Name of the variable to access
stringchar*Value of the string/text variable

Description

The routine PA_Dial4DGetString gets the value of a variable whose name is variable as a string in string.

By default, variable and string are null terminated C strings. If you have previously called PA_UsePStrings, the command will expect and return Pascal string.

By default, variable and string 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

Check if an enterable string variable is empty.

   char Dial_IsEmptyString( PA_Dial4D dialog, char *variable )
   {
      char   varValue;

      PA_Dial4DGetString( dialogRef, "theVariable", string );
      return (char) varValue[0] == O ? 1 : 0;
   }
   

See Also

PA_Dial4DSetString.

Error Handling

None.


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