Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Delphi retrive each string from a big string delimted with ";" (https://www.delphipraxis.net/153424-retrive-each-string-big-string-delimted-%3B.html)

obiwankby 2. Aug 2010 14:12

retrive each string from a big string delimted with ";"
 
Hi,

How can I retrive each 'member' of string from a big string delimited with ';'.

stringBig: ';str1;str2;str3 ...'

I want to retrive separate from stringBig: str1, str2 ...

bye

DeddyH 2. Aug 2010 14:18

AW: retrive each string from a big string delimted with ";"
 
Create a stringlist, set Delimiter to ';' and DelimitedText to your string. Now you got each substring in one item of the list.

Valle 2. Aug 2010 14:21

AW: retrive each string from a big string delimted with ";"
 
Maybe you're looking for explodeexplode?

Best regards,
Valle

fkerber 2. Aug 2010 14:21

AW: retrive each string from a big string delimted with ";"
 
Hi!

It's also possible to use the split function provided in our Code-Library:
http://www.delphipraxis.net/library-...unktion-23672/

Bye,
Frederic

obiwankby 2. Aug 2010 15:24

AW: retrive each string from a big string delimted with ";"
 
Thx,

'Split-Funktion' its a good solution for my application.

Danke,

ObiWanKby


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:22 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz