Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom listbox
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00420991
Message ID:
00421265
Views:
17
Try the following code in the list box keypress event

LPARAMETERS nKeyCode, nShiftAltCtrl
local lnIndex
lnIndex=this.listIndex
do case
case nKeyCode=5
nodefault
lnIndex=lnIndex-1
if lnIndex<1
lnIndex=1
endif
this.listindex=lnIndex
case nKeyCode=24
nodefault
lnIndex=lnIndex+1
if lnIndex>this.listcount
lnIndex=this.listcount
endif
this.listindex=lnIndex
endcase
Rodrigo Juarez
rodrigoj@azinformatica.com.ar

Para entender la recursividad, primero, hay que entender la recursividad.
Previous
Reply
Map
View

Click here to load this message in the networking platform