PA_FormatLongint

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

version 2003


PA_FormatLongint (value; format; result)

ParameterTypeDescription
valuelongThe long integer to format
formatchar *Format to use
resultchar *Formated string of value

Description

The routine PA_FormatLongint returns in result the string form of the long integer you pass in value, according to the format that you specify in format.

This works like the String 4th Dimension function. Refer to the 4D Language Reference manual for more information.

Depending on default settings or on previous calls to PA_UsePStrings or PA_UseCStrings, format must be, and result will be a Pascal or a C string.

Example

Format a long value :

   char result[256]; // using C strings under Windows
   PA_FormatDouble("1234567890","##-##-##-##-##", result);
   // result is now "12-34-56-78-90"

See Also

PA_FormatReal, String.

Error Handling

PA_GetLastError always returns eER_NoErr


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