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
 
 
À
21/12/1999 14:24:10
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00306732
Message ID:
00306869
Vues:
39
Steven,

I'm afraid I don't understand, what you proposed. What is ekp? Why it should be Public? I don't think Public is a good idea at all, and you can see several Jim B. postings about using 'Public'.

I was thinking about valid/LostFocus method, in which I should go through all lines in editbox and check len(alltrim(mline(...))=5 and isnumeric(). But may be this approach is not sufficient.

>This might work
>
>In the GotFocus of the EditBox set ekp = 1 and Public ek1
>
>In the keypress Event of the editbox put:
>
>If ekp < 5 Then
> ekp = ekp + 1
>Else
> KEYBOARD'{Enter}'
> ekp = 0
>EndIf
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