Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox and listbox
Message
 
To
01/10/1998 06:00:25
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00142711
Message ID:
00143689
Views:
18
Senna,

You must issue a NODEFAULT to stop VFP from processing the keystroke. You won't need the SetFocus call with a NODEFAULT.
WITH THISFORM
   DO CASE
      CASE nKeyCode=24  &&&& Down Arrow
         IF .List1.ListIndex <> .List1.ListCount
            .List1.ListIndexX = .List1.ListIndex + 1
         ENDIF		
         NODEFAULT
     CASE nKeyCode=5  &&&& Up Arrow
        IF .List1.ListIndex <> 1 AND .List1.ListCount > 1
           .List1.ListIndex = .List1.ListIndex - 1
        ENDIF		
        NODEFAULT
   ENDCASE	
ENDWITH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform