We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[59] InStr Command

Last post 02-06-2005 3:21 PM by James Crowley. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [59] InStr Command

    This thread is for discussions of InStr Command.

    • Post Points: 0
  • 03-30-2003 2:17 AM In reply to

    Am I missing something?

    Or is this seriously just one sentence?
    • Post Points: 0
  • 11-27-2003 10:44 PM In reply to

    • splat
    • Not Ranked
    • Joined on 11-27-2003
    • New Member
    • Points 5

    ... one line

    And somebody has ranked it up from 3.5. Hurrah.
    • Post Points: 0
  • 02-06-2005 10:56 AM In reply to

    Instr command

    Ok since this topic hasnt even got an explanation of the instr command i'll put one on here :P

    Ok this is what it looks like.

    Instr(start,string1,string2,vbcomparemethod)

    Ok i normally only use start and string1.

    Start is the textbox you wanna search.
    String1 is the text you wanna find in the text

    Here's an example use.

    If InStr(Text1.Text, "Damien") Then
    MsgBox "Text has been found."
    Else
    MsgBox "No text has been found!"
    End If

    This is basically saying.... if the word "Damien" is somewhere in Text1 then display a message box saying its been found.
    Else
    Display a message box saying it hasnt been found!

    Hope that helped!
    • Post Points: 0
  • 02-06-2005 3:21 PM In reply to

    • James Crowley
    • Top 10 Contributor
    • Joined on 12-07-2000
    • United Kingdom
    • Guru
    • Points 14,850
    • SystemAdministrator
    Erm. Oops, is all I can say to that.... it seems the redirect wasn't working The article redirects to the correct page now!
    • Post Points: 0
Page 1 of 1 (5 items)