JCL Help:IntToStrZeroPad

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts an integer to a string an left pads it with zero's.


Pascal

 function IntToStrZeroPad(Value: Integer; Count: Integer): string;


Parameters

Parameters Description
Value: Integer The integer value to convert to a string.
Count: Integer The number of characters in the resulting string. If the string is less than the specified number, the string is left padded with zero's until the string is the specified number of characters long.


Return Value

The string representation of the specified integer value, left padded with zero's. I don't know of any input that can cause this function to fail, but in the unlikely event that it does, it does so by raising an exception.


Description

IntToStrZeroPad converts the specified integer value to a string containing the decimal representation of that number and left pads it with zero's if the resulting string is less than the specified number of characters.


About

Unit

JclSysUtils


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page