Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADDOBJECT syntax
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022867
Message ID:
00022870
Vues:
34
>>I have this line in one of my class:
>>
>>oApp.AddObject('oTimer','Timer',lcParm1,lcParm2)
>>
>>where oApp is my application object.
>>
>>The help says that we can pass some parameters to the ADDOBJECT() method.
>>
>>When I run this it says Parameter statement not found. When I look at the default ADDOBJECT() method of oApp, I see that it can only accept the reference name and class name but not the parameters.
>>
>>The help says we can but the default behavior can't.
>>
>>How can we pass parameters related to my example?
>
>Add "LParameter param1,param2" to the INIT() of your class.

And also to the AddObject method of oApp!
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform