Autor Beitrag
einfach112
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Do 01.09.05 02:39 
Halli Hallo !

Mal wieder eine schöne frage (suche wie immer vorher schon verwendet....)

Also ich lade mir über das internet einen string per indykompo also
ausblenden Delphi-Quelltext
1:
2:
3:
4:
var
xxx:string
begin
xxx = idhttp1.get (balblabla)

dieser String enthält nun eine timerzeit in ganz einfacher form von z.B. 5000 aber halt als string! das problem das ich nun habe das ich dem timer keinen wert in Form von string zuweisen kann. habe schonmal probiert dem einen Int wert zu geben vonwegen
ausblenden Delphi-Quelltext
1:
timer1.intervall := strtoint(xxx)					

aber naja will er auch net! er will halt cardinal haben! aber leider gibts wie gesagt kein strtocard

Also meine Frage: Wie bekomme ich meinen String in ein Cardinal?

Bin wie immer über kurze und hilfreiche antworten sehr dankbar !

MfG
Einfach112 :wink:

Moderiert von user profile iconTino: Beitrag war sehr schlecht zu lesen... deshalb formatiert.

_________________
sorry bin noob !
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 01.09.05 05:29 
also bei mir funktioniert das mit StrToInt und dem Timer:
ausblenden Delphi-Quelltext
1:
Timer1.Interval:=StrToInt(Form1.Edit1.Text);					
JRegier
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1268

Win XP Home, Prof, 2003 Server
D6 Enterprise
BeitragVerfasst: Do 01.09.05 05:48 
user profile iconHeiko hat folgendes geschrieben:
also bei mir funktioniert das mit StrToInt und dem Timer:
ausblenden Delphi-Quelltext
1:
Timer1.Interval:=StrToInt(Form1.Edit1.Text);					


dann mach so:

ausblenden Delphi-Quelltext
1:
Timer1.Interval:= Cardinal(StrToInt(Form1.Edit1.Text)); // fals es bei dir nicht anders funktioniert!					
einfach112 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

xp
del7
BeitragVerfasst: Do 01.09.05 08:23 
oha oha oha !
Oh Sorry ! sehe da gerade das ich das falsche label genommen habe.....
naja fehler lag natürlich daran !LOL !
sorry !
aber trotzdem vielen dank fürs Backup !

_________________
sorry bin noob !
LigH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 239

Win98SE, Win2000SP4
D7
BeitragVerfasst: Do 01.09.05 08:38 
"Für's Backup"? -- "Für den Support" wohl eher, wenn du auf Deutsch "für die Unterstützung" meintest. ;)