Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject (,,,someParameter)
Message
From
01/09/1998 10:56:21
 
 
To
01/09/1998 10:51:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00131890
Message ID:
00131896
Views:
31
>Hi all !
>
>I'm having some troubles using AddObject on a container. I want to pass parameters to the init function but it don't seems to work:
>
>MyObject.AddObject ("MYClass","MYClass",,MyParam)
>
>When I step on the init method of MYClass, the param is not set (= .F.)
>
>Somebody has an idea ?
>
>Thanks you for your time,
>Banania
>
>
>(SL@TC2S.BE)

Remove extra comma in Addobject():
MyObject.AddObject ("MYClass","MYClass",MyParam)
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform