Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a form from a custom object
Message
 
 
À
08/05/2001 21:13:45
Michael Harris
Harris and Harris Consultants
Temple Hills, Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00505082
Message ID:
00505106
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform