Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox problem
Message
From
19/11/1998 10:14:33
 
 
To
19/11/1998 10:01:01
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00159248
Message ID:
00159256
Views:
26
>I want to limit a user to only entering 7 characters into a text box. I've set the MaxLength property to 7 in order to accomplish this. This worked, but after the seventh character was entered into the box the blinking cursor in the textbox moved backwards. In other words, instead of blinking after the seventh character it was blinking in between the sixth and seventh. I find this to be very annoying. I just want the blinking cursor to be after the seventh character, this way the user can backspace to correct any mistakes. Thanks in advance for any help in correcting this problem.
>
>John Symons

***Textbox.InteractiveChange event
IF len(rtrim(this.value))=this.maxlength and this.selstart=this.maxlength-1
 this.selstart=this.maxlength
ENDIF
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform