formZ SDK | 5.0 API Reference | System | Script Only

fz_std_sprint_int

Description

Writes an integer value into a string. The field_width argument determines the minimum width of the output in # of digits. More are written, if the integer has more digits. If the integer has less digits, extra blanks are written in front of the number. If the field_width is passed as 0 or less, the exact number of digits for the integer are written. This is in essence the same as fprint_int, except, that the output goes into a string, instead of a file.

Parameters

str [Input]

string to be written to.

lval [Input]

the integer to be written.

field_width [Input]

the minimum field width

Returns

# of digits written, or negative if an error occurred.

Availability

5.0.0.0

See Also

fz_std_sscan_int