Results 1 to 3 of 3

Thread: text box riddle

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Twin Falls
    Posts
    5
    2 questions in one.

    1. I need to move text from 4 fields into a multiline text box and then move them back into the fields after the user has modified the text without moving any soft or hard returns back into the 4 fields.

    ALSO

    2. I need to be able to limit the amount of lines in the multiline text box to 4 lines only so that I can move the text back into the 4 fields without losing any user input.

    I have tried several ways of doing this but can't seem to find an efficient way of controling the input from the user. The most difficult of which is how to predict whether the next character that is typed will make the text wrap beyond my line limit, then, if it does go beyond the limit, how to remove the character that was entered.

    Any help would be appreciated. If you know of a Text Box Control that might do such a thing, please let me know.


  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116
    You can check the text box for the number of Carriage return(dunno how to spell) and line feeds combination depending on your OS, this can help you determine the number of lines the user has typed

    Using the CrLf as delimiter, you can separate the line as and when you want.
    YC Sim
    Teenage Programmer
    UIN 37903254



  3. #3
    Lively Member
    Join Date
    Feb 2000
    Posts
    118

    will this work?

    Can you use four text boxes set close together? If so you could set the maxlength property to what ever you want.

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