Autor Beitrag
scholei
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Fr 05.08.05 13:27 
Hallo,

ich habe einen String z.B. 'AAAAAA,123456' und will nur den Teil nach dem Trennzeichen
auslesen.
Was für eine Funktion kann ich dafür verwenden?
Könnt Ihr mir da helfen?

Schon mal vielen Dank im Voraus.

scholei :?
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Fr 05.08.05 13:31 
such mal im Forum nach Suche in: Delphi-Library EXPLODE, sollte auch im FAQ-bereich 'ne Funktion dazugeben

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
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: Fr 05.08.05 13:39 
Kannst auch pos();, copy(); und length(); verwenden.

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



BeitragVerfasst: Fr 05.08.05 13:56 
habe andere Möglichkeit gefunden
ausblenden Delphi-Quelltext
1:
2:
3:
myString:= 'AAAAAA,1234';

myString:= myString.Substring(myString.IndexOf(',')+1);


bekomme dann genau '1234' heraus.

scholei :D

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.