Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TxtBox KeyPress Event
Message
De
15/05/1998 12:06:59
 
 
À
15/05/1998 03:25:34
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00099565
Message ID:
00099763
Vues:
25
>>When I run the form the code does it's work OK but when I press < ENTER> nothing happens.
>>
>>Any ideas???
>Hi,
>The problem is 1) your NODEFAULT is always happenning, so it is blanking your ENTER keypress. 2) you have to pass the given parameters when you DODEFAULT().
>
>Try :-
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>local lnant_start
>
>IF nKeyCode = 45
> nodefault
> lnant_start = this.SelStart
> this.SelStart = 0
> this.SelLength = lnant_start
> this.SelText = transform(val(left(alltrim(str(val(this.SelText))), 4)), "@L 9999")
> this.SelStart = 4
>ELSE
> dodefault( nKeyCode, nShiftAltCtrl)
>ENDIF


Worked just fine. Thanks for your help.

Ricardo M. Araoz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform