Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add object to form in code
Message
De
07/01/2013 20:59:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01561681
Message ID:
01561685
Vues:
54
>Try Thisform.AddObject() / Thisform.NewObject()
>
>>Not quite sure how to do this.............
>>
>>I have a class (oJob) which is found in a prg (progs\job_generator.prg)
>>
>>I have a form. In the init of the form I want to add an instance of oJob as an object, not a property. The reason for this is that I would like oJob to be able reference properties on the form (this.parent.property)
>>
>>This isn't a critical issue for me (I have alternatives available that I'm sure would work) but I would like to know if this can be done and, if so, how.
>>
>>Thanks to all...............Rich

Thanks (again)

I had tried AddObject() but ran into problems getting the parameters correct. I had forgotten about NewObject() and, for whatever reason, this was easier for me to work with.

.........Rich
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform