Código Delphi [-] var NumeroEntero : integer; begin NumeroEntero := 1; Label1.Caption := Format('%.2d', [NumeroEntero]); // Label.Caption = '01' NumeroEntero := 42; Label2.Caption := Format('%.2d', [NumeroEntero]); // Label.Caption = '42' end;
var NumeroEntero : integer; begin NumeroEntero := 1; Label1.Caption := Format('%.2d', [NumeroEntero]); // Label.Caption = '01' NumeroEntero := 42; Label2.Caption := Format('%.2d', [NumeroEntero]); // Label.Caption = '42' end;