![]() |
String an bestimmter Position prüfen
Hallo!
Ich will prüfen ob ein bestimmter String-Wert an einer bestimmten Position steht. Ich benutze die Unit jbstr. Habs jetzt mal so probiert, aber es klappt nicht (nicht genügend Parameter):
Delphi-Quellcode:
if List.Strings[1] := strip(' X') = 0 then
|
Re: String an bestimmter Position prüfen
Da dürfte dir
![]() PS: Zuweisungen in einer IF sind in C möglich, aber nicht in Delphi ;) |
Re: String an bestimmter Position prüfen
Zitat:
Delphi-Quellcode:
THX :thumb:
s := StrToInt(strip(' X',List.Strings[1]));
if s = 0 then |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:49 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 by Thomas Breitkreuz