Einzelnen Beitrag anzeigen

Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.487 Beiträge
 
Delphi 7 Enterprise
 
#14

AW: For-loop from C to Delphi

  Alt 19. Sep 2011, 12:56
Oder kürzer Or shorter:
Delphi-Quellcode:
function ctoi(source: char): integer;
begin
   result := StrToInt('$'+source);
end;

function itoc(source: integer): char;
begin
   c := Format('%x', [source])[1];
end;
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat