|
-
May 30th, 2000, 06:18 AM
#1
Thread Starter
New Member
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.
-
May 30th, 2000, 06:24 AM
#2
Lively Member
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
-
May 30th, 2000, 01:20 PM
#3
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|