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).
Printable View
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).
Look at InStr([start, ]string1, string2[, compare])
If InStr(LCase$(FileName), ".bmp") <> 0 Then MsgBox "File is a bitmap image"