Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TxtBox KeyPress Event
Message
De
15/05/1998 03:25:34
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
14/05/1998 15:54:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00099565
Message ID:
00099674
Vues:
20
>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
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform