Results 1 to 3 of 3

Thread: !Urgent Reading / Writing to specific line in a text box.

  1. #1

    Thread Starter
    Hyperactive Member Animelion's Avatar
    Join Date
    Jan 2001
    Location
    Jacksonville NC
    Posts
    283

    !Urgent Reading / Writing to specific line in a text box.

    I really needed the answer to this a few days ago.

    Ok lets say I have a text box with the following content.

    Color =Blue
    Width =18
    Name =Smith
    Age =13

    How can I read what comes after the = sign on a specific line into another text box.

    ex. line 3 is "Name =Smith" and the output in a textbox would be "Smith"

    Also on the other end of this, how can I write to a specific line in a textbox, and I would like it to replace the line currently there.

    ex. I want line 2 to read "Width =19" then the textbox would look like this.

    Color =Blue
    Width =19
    Name =Smith
    Age =13


    If possible please explain the steps as much as possible.

    Thanks for any help anyone can give, it is really appreciated cause I'm in a such a jam.
    ~ Animelion

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    the split function will help you get the parts of the line separated

  3. #3
    Addicted Member
    Join Date
    Apr 2002
    Location
    Anywhere but here
    Posts
    161
    If you are still looking tomorrow... let me know. I have some examples at work that are exactly what you are looking for.
    -------------------------
    My name says it all!

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