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
From
21/12/1999 15:51:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00306732
Message ID:
00306922
Views:
50
Nadya,

Here is code that will only let 5 characters be entered into each line of the edit box. Again ekp is only a variable. It's value needs to be set to zero in the init event of the editbox.

If nKeyCode = 13 Then
If ekp < 4 Then
MessageBox("Must Be five characters")
NoDefault
Else
ekp = 0
EndIf
Else
If ekp = 4 Then
KEYBOARD'{Enter}'
Else
ekp = ekp + 1
EndIf
EndIf
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform