Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObject vs AddObject
Message
From
26/04/1999 14:54:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00212204
Message ID:
00212259
Views:
31
>>>>>I am new. Please be patient.
>>>>>
>>>>>Briefly, what is the difference between CreateObject and AddObject.
>>>>>
>>>>>Thanks,
>>>>>
>>>>>Vin
>>>>
>>>>Briefly, the difference is that AddObject can be used to add an object to container and CreateObject covers more common case: you create an object and may or may not associate it with some other object (container or not container). Normally, you should associate it, except the case when object is Local.
>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>This is correct. CreateObject does not have to be associated with a Container.
>>>
>>>Pierre
>>>demester@VisualFoxPro.com
>>
>>Sorry, I don't quite understand your reply. What is 'correct'?
>>Before typing your answer, notice that I said 'normally'.
>
>Ed,
>
>Pierre replied earlier than you and implied that both CreateObject and AddAbject must be used for containers. Take a look at his earlier reply to Bhrugvish Vin.
>
>So, you inadvertently were correcting him...
>
>Take care,
>Joe

Ok :-). I really misunderstood.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform