Autor Beitrag
Frankieboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Fr 06.03.09 22:42 
Hallo, ich habe ein einfaches Problem:

es gibt einen String, der eine hexadezimale Zahl enthält (z.B. "33A5F"). Diesen String will ich ich in einen hexadezimalen Zahlenwert ändern (33A5F). Mit StrToInt geht es aber nicht, ich bekomme eine Exception.

Was soll ich tun?


Greetz

Frank
LexXis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 170
Erhaltene Danke: 3



BeitragVerfasst: Fr 06.03.09 22:55 
Als Parameter für StrToInt nicht '33A5F', sondern '$33A5F' verwenden.
(Hat mich übrigens eine Minute rumprobieren gekostet. Den Start von Delphi mit eingerechnet ;))
Frankieboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Fr 06.03.09 23:26 
Ja, ich habs vorhin auch selbst gemerkt.

Trotzdem danke