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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Defining variables as form properties?

Status
Not open for further replies.

Loomis

Programmer
Jan 4, 2000
30
US
In previous forum responses, it has been suggested that arrays and variables should no longer be defined in main.prg but should instead be defined by the user as properties of a form. Problem is, when you need to use a variable in a form and that variable is defined in some other form, the variable reference becomes cumbersome in length because you have to name the other form object and then the property that is the variable. Also, intellisense doesn't see variables within one form when the varible is defined in some other form. Is the answer defining variables in the formset object?
 
I think the answer is to do whatever is practical for your particular circumstances. Sometimes one way is best, sometimes another.



Regards
BrianB
Use CupOfCoffee to speed up all windows applications
================================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top