Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on Help - Name Property
Message
 
 
To
22/07/1998 19:42:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00120091
Message ID:
00120271
Views:
33
David,
set soapbox on
*g*

Inside form methods always use thisform or this. Outside a form you can use the _screen.Forms[] collection or _screen.ActiveForm or your own forms manager object (but hardcoding a reference to an app object or form manager object can come back to hinder you). If one form is talking to another pass references from one to the other do form xyz with thisform this let's xyz easily work with any caller form.

Coding to a specific form object name restricts you too much especially when dealing with multi-instance forms.

>That all makes sense. I was thinking of "forms" at the time. Does that mean we can't or shouldn't refer to a form by name?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform