WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   inhalt von variable prüfen (vb) (http://www.wcm.at/forum/showthread.php?t=115476)

Sesa_Mina 15.11.2003 12:14

A = "Das ist ein Test"

Pos = InStr(1,UCase(A),"EIN")

Pos ist somit 9

Die 1 bei Instr gibt die Startposition an wo mit der "Suche" begonnen wird. Durch verwendung von UCase wird das ganze auch noch "Case Insensitive", also Gross/Kleinschreibung ist egal.


Alle Zeitangaben in WEZ +2. Es ist jetzt 01:33 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag