Thema: Power++

Einzelnen Beitrag anzeigen

hermidelphi

Registriert seit: 27. Nov 2003
51 Beiträge
 
Delphi 7 Personal
 
#6

AW: Delphi++

  Alt 12. Aug 2010, 07:11
Hallo,

ich habe ein Problem mit RCII. Folgende Funktion funktioniert mit RCI.

Code:
function MyIntToStr(const i: int): string;
var tmp: int;
begin
  Result := '';
  tmp := i;
  repeat
    if tmp < 0 then
      begin
        tmp := -1 * tmp;
      end;
    Result := Str.Chr(tmp mod 10 + 48) + Result;
    tmp := tmp div 10;
  until tmp = 0;
  if i < 0 then
    Result := '-' + Result;
end;
Bei RCII erscheint die Fehlermeldung:

[11:18] -> Undeclared identifier: 'Str'

Kann jemand helfen?