Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access in one event from another.

Status
Not open for further replies.

kes103

Programmer
Jun 28, 2003
26
US
How can I set up a program so that functions in one event (say a PrintClick event) can access data in another event (say a calculateClick) event?
 
If data is global, or if it is part of the same class (public or private) u can access without any problem.

--- LastCyborg ---
 
I guess I'm more interested in how you can use scoping for instance the scope resolution operator "::" because for some reason data declared in one event (for instance an OnClick event) is not accessible in another event (for instance another OnClick event). I noticed in another thread (I found it after I started this one) stated that you could use for instance
Code:
Form1->VariableA;
underneath the other event to bring the variable back into scope.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top