Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to limit the number of lines in a memo ?
Message
 
 
To
21/12/1999 14:24:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00306732
Message ID:
00306869
Views:
40
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform