Results 1 to 2 of 2

Thread: go line by line in textbox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275

    go line by line in textbox

    Hey,

    I have a textbox with some settings in it. How do i go line by line to get there value's?

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    First, you should set the 'Multi Lines' property of textbox to 'True'. Then you can access the lines in one of these ways:

    VB Code:
    1. Dim txLine as String, i as Intger
    2. txLine=Textbox1.Lines()(i)
    3. 'Where  i is the zero based index of the line you want to access
    Alternatively you can read all the contents of the textbox to a string array.
    VB Code:
    1. Dim txLines() as String, i as Integer
    2. txLines=Textbox1.Lines()
    3. 'then access each item from the string array

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