Autor Beitrag
Huck
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Di 19.01.10 12:08 
hallo an alle,

ich habe da einen string und möchte ihn zerlegen.

Eintrag:= '1001|test|gross|432|name'

und der soll nach jedem trennstrich ausgelesen werden.
ich hoffe ihr könnt mir helfen.

vielen dank
Huck
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 19.01.10 12:15 
Und wie sehen deine bisherigen Versuche aus?

Tipp:
- TStringList.DelimitedText

_________________
PROGRAMMER: A device for converting coffee into software.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Di 19.01.10 12:17 
Hi, und :welcome: im Delphi-Forum!

Delphi bietet dazu vorgefertigte Funktionen: Pos, PosEx und Copy. Tippe die mal in die Delphi-Hilfe(F1) ein, und schau ob du weiterkommst.

mfG,

E: Das ist die Standardlösung. Was user profile iconXentar geschrieben hat, geht aber wohl mit sehr viel weniger Aufwand.

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)