Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable declaration
Message
From
17/05/1999 22:04:58
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00219669
Message ID:
00219875
Views:
29
>Fred,
>
>IMHO using generic "this*" references inside method code is the only way you should ever reference properties. eg. thisform.PropertyName or this.parent.PropertyName. Using named references is fundamentally flawed because you don't really know, and can't always guarantee, what the name of the memvar is that holds the object reference.

Correct! My error.

>
>>It is referenced by: formname.propertyname wherever you need to use it. Also it can be referenced by thisform.propertyname within any of the forms methods.
>>If what you want is a variable that can be used by the form anywhere within it, you want to define a form property. It is referenced by: formname.propertyname wherever you need to use it. Also it can be referenced by thisform.propertyname within any of the forms methods.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform