Autor Beitrag
Cybo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 87

Win 95/98/xp/NT Suse Linux
D7 Ent
BeitragVerfasst: Mo 15.08.05 23:39 
Hallo ;)

ich habe ein kleines Problem. Ich rufe per Delphi eine *.php Datei auf und diese liefert mir eine php Datei mit einer Ausgabe wie folgt :


Returncode|#UserLose|#freeEFAnfragen|#bezEFAnfragen|#EFLose
(sieht dann so aus: 1001|998888140|0|499937|95412584)

Wie kann ich nun die Zahlen abspeichern um damit zu arbeiten? :?

MfG

EDIT: ich überlege gerade.. wäre es möglich die eine Var(string) =kompletter Inahlt der php datei und dann raussuchen var1=bis zum ersten | var 2 bis zum 2-ten | ?

Aber das scheint mir etwas sehr unpraktisch zu sein...

_________________
Ich öffnete, kompilierte und traute meinen Augen nicht.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 16.08.05 07:44 
ist es nur die eine zeile die zurückkommt oder ist es mehr ?

ich könnte dir da die TStringlist oder ein Array empfehlen.

du könntest dir auch mal Suche in: Delphi-Forum, Delphi-Library EXPLODE oder Suche in: Delphi-Forum, Delphi-Library GETTOKEN anschauen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Di 16.08.05 07:46 
Oder Pos() und Copy().

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Cybo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 87

Win 95/98/xp/NT Suse Linux
D7 Ent
BeitragVerfasst: Di 16.08.05 09:59 
user profile iconmatze hat folgendes geschrieben:
ist es nur die eine zeile die zurückkommt oder ist es mehr ?

ich könnte dir da die TStringlist oder ein Array empfehlen.

du könntest dir auch mal Suche in: Delphi-Forum, Delphi-Library EXPLODE oder Suche in: Delphi-Forum, Delphi-Library GETTOKEN anschauen !


Es kommt in der AUsgabe der PHP Datei genaus eine Zeile zurück die halt nur aus Zahlen und | besteht. Ich werde mir deine Verweise schonmal genau ansehen.

MfG

_________________
Ich öffnete, kompilierte und traute meinen Augen nicht.