Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor Adapter and Parameterized Views
Message
 
À
20/06/2007 10:33:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01234376
Message ID:
01234504
Vues:
32
>Larry,
>
>>Once I created the variable as PRIVATE so it could scope down in to the DODEFAULT then it worked as expected. So, now I create the key variable as PRIVATE at the CursorFill method level, run the DODEFAULT and then the results come back and remain. Thanks for pointing out my oversight.
>
>Another option is to add a property to the CursorAdapter to hold the key value, giving it scope for the lifetime of the CA. Then you could do this:
oCA.cMyKey = "whatever"
>oCA.CursorFill()
Then in your CursorFill (or my preference -- in the BeforeCursorFill() method) you patch up the SelectCmd property (cSelectCmd incoming parameter in BeforeCursorFill() ) as you are doing now and use THIS.cMyKey in place of your variable name.

:-)
And if you add ASSIGN method to that property you can automatically refresh CA when you change that property :-) I like this.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform