Results 1 to 3 of 3

Thread: Another Simple String Question {Resolved}

  1. #1

    Thread Starter
    Hyperactive Member psycopatchet69's Avatar
    Join Date
    Sep 2004
    Location
    Grand Rapids, MI
    Posts
    256

    Resolved 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.

  2. #2
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313

    Re: Another Simple String Question

    Look at InStr([start, ]string1, string2[, compare])

  3. #3
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    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
  •  



Click Here to Expand Forum to Full Width