Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to limit the number of lines in a memo ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00306732
Message ID:
00306802
Vues:
27
Hi Ken,

Continue the theme of editbox, how can I check that users type 5 and only 5 digits in each line? If not, display a warning message and stop.

TIA

>Hi Eric,
>
>I'm assuming you mean an editbox. IF this is the case, you can add the following code to the editbox's KeyPress event:
>
LPARAMETERS nKeyCode, nShiftAltCtrl
>if nkeycode = 13
>	if occurs(chr(13),this.value) >=5
>		nodefault
>	endif
>endif
This example limits input to 6 lines.
>
>>When the user input in a memo field using a text box, is it possible to restrict the input to a predetermined number of lines. (Right now I take out the vertical bar but still the user can input more than the size on the screen).
>>
>>Thanks
>>ERic
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform