Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I restrict TextBox values without using combo
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00563635
Message ID:
00563674
Vues:
20
>It's nice to have Foxpro 2.6 help file around, don't you think? :)
>To get 'Delete' key to work add comma to the end of the list in the InputMask and following code to the textbox keypress event. It works but I didn't test it extensivly.
>
LPARAMETERS nKeyCode, nShiftAltCtrl
>If nKeyCode = 7
>	DO Case
>	Case This.Value = "A"
>		Keyboard '{SPACEBAR}{SPACEBAR}'
>	Case This.Value = "I"
>		Keyboard '{SPACEBAR}'
>	Endcase
>EndIf
>
>BTW, how do you lik my picture? :)

Ok, it works great, but it's not enough :) I want to activate BackSpace too, e.g. want to be able to click after I and delete it using BackSpace. Currently I can only click before I/A.

Anyway, it's not a big of a deal...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform