Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing a form from a custom object
Message
 
 
To
08/05/2001 21:13:45
Michael Harris
Harris and Harris Consultants
Temple Hills, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00505082
Message ID:
00505106
Views:
20
Michael,

You can also use containership to help solve this problem. You can either at design time add your object to the form, or at runtime add with:

this.AddObject( "oDataConverter", "DataConversion" )

Then inside the custom class you can simply:

this.parent.prgbarOverall...

>I have created a custom object which converts data from a group of Foxpro 2.6 for DOS tables to a Visual Foxpro database. I have a form which has two progress bars and a command button to execute the conversion. When this form is executed, it instantiates the conversion object and assigns it to a property of the form. I want to update the progress bars in the form from the object. How can I reference the form from the object. I have used the syntax: _screen.forms().prgbarOverall...... I keep getting a error saying that "forms" is not an object. Any help is greatly appreciated.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform