var i:dword; begin i:=strtoint('000001'); showmessage(format('%.5d',[i+1])); end;平时自己多动手试试.................... -_-!!
function RightStr(s: string; len: Integer): string; begin Result := Copy(s, Length(s) - Len + 1, Len); end;for i := 1 to 1000 do showmessage(RightStr('00000' + inttostr(i),5));
inc(i);
begin
i:=strtoint('000001');
showmessage(format('%.5d',[i+1]));
end;平时自己多动手试试.................... -_-!!
begin
Result := Copy(s, Length(s) - Len + 1, Len);
end;for i := 1 to 1000 do
showmessage(RightStr('00000' + inttostr(i),5));