PA_GetUserCharSet

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

version 2003


PA_GetUserCharSet PA_CharSet

ParameterTypeDescription
This command does not require any parameters
Function resultPA_CharSetUsed charset

Description

The PA_GetUserCharSet command returns the charset used for the string and text parameters of 4D Plugin API commands. By default, this command will return eCS_Macintosh on Macintosh, and eCS_Ansi on Windows. The charset can be set using PA_UseMacCharacters and PA_UseAnsiCharacters.

Examples

Read the current charset, set it to Ansi and restore it if needed

      ` 
   PA_CharSet charset;

   charset = PA_GetUserCharSet();
   PA_UseAnsiCharacters();
   /* do anything using Ansi strings */
   if ( charset == eCS_Macintosh )
      PA_UseMacCharacters();

See Also

PA_UseAnsiCharacters, PA_UseMacCharacters.


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