Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controling Edit-Box-Control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00927875
Message ID:
00927904
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi there,
>
>ist it possible to use an edit-box-control and limit the number of lines and the number of chars of per line?
>
>Thanks in advance
>
>Thomas

Hi Thomas,

While Editbox just wraps the text automatically according to its width, you could control the lines in it by calculating the number of characters entered and insert carriage return and line feed ( CHR(13)+ CHR910) ) after every NN characters.

To limit te number of lines you can just truncate the text entered after your calculated limit is achieved.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform