...convert a number to a string with leading zeroes?
Author: Sebastian Derdulla
procedure TForm1.Button1Click(Sender: TObject);
begin
label1.Caption := Format('%.*d', [10, 1456]);
// ---> 0000001456
end;
printed from
www.swissdelphicenter.ch
developers knowledge base