Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the cursor adapter
Message
From
10/04/2006 09:56:33
 
 
To
10/04/2006 09:53:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01111932
Message ID:
01111936
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform