Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor Adapter and Parameterized Views
Message
De
20/06/2007 10:33:34
 
 
À
20/06/2007 10:02:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01234376
Message ID:
01234493
Vues:
30
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.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform