|
-
Feb 28th, 2005, 08:48 PM
#1
Thread Starter
Hyperactive Member
Another Simple String Question {Resolved}
How do I check to see if a string contains another string within itself?
Example, i want to see if the string of a filename contains a certain extension(.bmp).
Last edited by psycopatchet69; Feb 28th, 2005 at 09:02 PM.
-
Feb 28th, 2005, 08:50 PM
#2
Frenzied Member
Re: Another Simple String Question
Look at InStr([start, ]string1, string2[, compare])
-
Feb 28th, 2005, 08:52 PM
#3
Re: Another Simple String Question
If InStr(LCase$(FileName), ".bmp") <> 0 Then MsgBox "File is a bitmap image"
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
|