Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Suche String Funcktion (https://www.delphipraxis.net/70717-suche-string-funcktion.html)

thetrue 3. Jun 2006 13:09


Suche String Funcktion
 
moin,

ich bin auf der Suche nach paar String Funktionen:

Delphi-Quellcode:
txt := "/*/cmd:getinfo"
jeztz will ich Prüfen, ob die ersten 6 Zeichen = "/*/cmd" sind, und dann will ich auslesen, was nach dem 7tem Zeichen":" kommt.

doch wie mache ich das?

arbu man 3. Jun 2006 13:22

Re: Suche String Funcktion
 
Delphi-Referenz durchsuchencopy

Phistev 3. Jun 2006 13:27

Re: Suche String Funcktion
 
Delphi-Quellcode:
if Copy(txt, 1, 6) = '/*/cmd' then txt2:= Copy(txt, 8, length(txt);


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:47 Uhr.

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