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
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00306732
Message ID:
00306818
Views:
34
Hi Nadya,

You can use the valid, and ErrorMessage events:
* Edit1.Valid()

return 	occurs(chr(13),this.value)=5

* Edit1.ErrorMessage
if occurs(chr(13),this.value) >5
	wait window 'You may enter only 6 lines' nowait
else
	wait window 'You must enter at least 6 lines' nowait
endif
>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
>
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform