Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add object to form in code
Message
 
À
08/01/2013 14:11:16
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:
01561750
Vues:
51
>In order to use form.AddObject() the prg/vcx file must have been included in the SET PROCEDURE/SET CLASSLIB statement. There is no way to pass it as a parameter to the AddObject() method. If I haven't done that I need to use form.NewObject()
>
>Thanks again...........Rich

And in my opinion you should seldom use AddObject but NewObject instead, as it is also my opinion that you should seldom use SET PROCEDURE or SET CLASSLIB, although I know people disagree with me with this as I had some discussions about this subject in the past.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform