Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TxtBox KeyPress Event
Message
From
15/05/1998 03:25:34
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
14/05/1998 15:54:19
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00099565
Message ID:
00099674
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform