Vielleicht mit InStr ?
In Vb.net müsste IndexOf gehen.
Zitat:
This code starts at the beginning of 'The weather today is reasonably warm and sunny', because we didn't give a start position, and searches for the word 'warm' in it. If it does not find the word warm in the string, then it will return the value as 0, and you get a message saying '0'. However, if it finds the word, then it returns a number saying where it found the start of the word. In this case, you would see a messagebox saying '32' because the 'w' of warm is 32 characters into the string.
Dim r As String = "The weather today is reasonably warm and sunny"
r = r.IndexOf("warm")
MsgBox(r)
|
Quelle: http://pscode.com/vb/scripts/ShowCod...=169&lngWId=10
Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona)
Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing.
\"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra)
|