Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing the cursor adapter
Message
De
10/04/2006 09:56:33
 
 
À
10/04/2006 09:53:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01111932
Message ID:
01111936
Vues:
19
>i create a cursor adapter in the init of the form
>
>when i try access this cursor from a buttom
>foxpro cannot find it
>
>how can i resolv this


Local variables are only in scope in the method they are created in. So a variable declared as local in Init() is not seen in other methods. What you should do is add properties to the container object (in your case a Form), then assign the variable contents to the form.property instead so they are visible throughout the life of the form.

See: form.AddProperty()


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform