Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controling Edit-Box-Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00927875
Message ID:
00927904
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform