|
-
Nov 3rd, 2000, 04:38 PM
#7
New Member
Use InStr function
InStr([start_pos],str_to_search,search_for [,compare_type])
Ex:
Dim x as Integer
Dim strToSrch as String
strToSrch = "This is so easy..."
x = InStr(strToSrch, "easy")
If string was found the value of the x will be stating position of the string (in this case x=12).
If string was not found then x=0
 File not found!
Abort, Retry, Get a Beer...
L8r
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|