Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>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.
FWIW, I agree with you. I always use NewObject() so that I don't have to rely on SET PROC/CLASSLIB.
Tamar
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement