PA_FormatLongint


version 2003


PA_FormatLongint (value; format; result)

Parameter Type Description
value long The long integer to format
format char * Format to use
result char * 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