Actually, the correct format uses the %d descriptor as follows:
var
value: Integer;
StrFmt: String;
begin
value := 5;
StrFmt := Format('%.4d', [value]); { Will generate 0005 }
end;
When I use the Borland Editor Script enhancement package to remap my keyboard in Delphi 6, the IDE becomes extremely unstable, throwing numerous access violations and sometimes rendering the editor inoperable. I read somewhere that this is a known bug in Delphi 6. At home I have Delphi 7 and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.