Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter and WHERE
Message
 
To
21/02/2008 13:29:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01294821
Message ID:
01294963
Views:
30
The right place to build WHERE clause is in BeforCursorFill method. BUT DO NOT Change SelectCmd, only change cSelectCmd parameter value.
Better DO NOT CHANGE anything just use Parameters:
this.SelectCmd = [SELECT * FROM YourTable WHERE SomeField = ?lePar1 AND OtherField = ?lePar2]

*** Then:
lePar1 = 1000
lePar2 = [BlahBlah]
oCA.CursorFill()
BROWSE NORMAL
lePar1 = 2000
lePar2 = [BlahBlah 800]
oCA.CursorRefresh()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform