Thema: Delphi Hilfe bei Schleife

Einzelnen Beitrag anzeigen

Benutzerbild von Jens Schumann
Jens Schumann

Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
 
Delphi 2009 Professional
 
#7

Re: Hilfe bei Schleife

  Alt 15. Mär 2004, 13:39
Hallo,
wie wäre es damit:
Delphi-Quellcode:
function TForm1.Dual2Dezimal(const DualString: String): LongWord;
var
  iCnt : Integer;
begin
  Result:=0;
  For iCnt:=1 to Length(DualString) do
    Result:=Result+StrToInt(DualString[iCnt])*Round(IntPower(2,Length(DualString)-iCnt));
end;
math in uses nicht vergessen
I come from outer space to save the human race
  Mit Zitat antworten Zitat