Results 1 to 3 of 3

Thread: part of text1.text

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2006
    Posts
    221

    part of text1.text

    how would i say something like "if part of text1.text is "bob" then text2.text is "random"" or something like that?

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: part of text1.text

    If InStr(Text1.Text,"bob") > 0 Then Text2.Text = "random"

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: part of text1.text

    You can also use the Like operator:
    VB Code:
    1. If Text1.Text Like "*bob*" Then
    2.     '... do something
    3. End If

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