Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter and WHERE
Message
 
À
21/02/2008 13:29:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01294821
Message ID:
01294963
Vues:
31
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform