Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox dropdown for 400k records search
Message
From
18/09/2006 15:03:36
 
 
To
18/09/2006 14:22:46
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01154761
Message ID:
01154863
Views:
11
>Tore,
>In essence, it is like :-
>sele top 50 prodcode, proddesc ;
>from tstokmast ;
>order by 1,2 ;
>into cursor c_prodlist
>
>I'm using macro substitution for prodcode and proddesc as its a parameter passed from a base form. (&firstfield where firstfield value is "prodcode").
>I just typed this into the command window and the result is no better.
>Yau

Select NOTHING until the user types at least one charecter! Start with an empty cursor which you can create in the form's load event:
sele prodcode, proddesc from tstokmast into cursor c_dummy readwrite where .f.
in the lostfoxus of the textbox to enter the first letter(s):
lcText=upper(alltrim(this.value))
sele top 50 prodcode, proddesc ;
from tstokmast ;
order by 1,2 ;
into cursor c_dummy nofilter where prodcode=lcText
sele c_prodlist
zap
appe from dbf('c_dummy')
this.parent.grdProdcode.setfocus()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform