Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox problem
Message
De
19/11/1998 10:14:33
 
 
À
19/11/1998 10:01:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00159248
Message ID:
00159256
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform