Results 1 to 3 of 3

Thread: [RESOLVED] Searching for an item in an array and going to it

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Resolved [RESOLVED] Searching for an item in an array and going to it

    Hey all!

    I was wondering if there was a code for searching for an item in an array. For example.. In a textbox it says 80 numbers:


    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    22
    66
    68


    etc..


    Now when you click a button it finds 22 and then highlights it. It also goes to it. Like.. If there is a scrollbar it also adjusts it so you can actually see the 22. Yea.. If anyone knows please don't hesitate to answer!

  2. #2
    Lively Member
    Join Date
    Feb 2005
    Posts
    84

    Re: Searching for an item in an array and going to it

    try TextBox1.Text.IndexOf("22")

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: Searching for an item in an array and going to it

    thanks

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