Hi!
Well, little of programmers use 'containership' word, usually 'reference'. 'Containership' - it is when object put on the form or container in design time or added by AddObject/NewObject. 'Reference' - if reference to existing object is assigned to property of form or container. When you use containership, only form can initialize object, then it could be used by reference. Existing objects could not be added to form by way if it is containership (similar to AddObject).
>Yes, my wording was a bit iffy - I thought it might have been mis-interpreted.
>
>Thanks
>Kev
>
>>Hi!
>>
>>You said:
>>>>If I created a variable that creates one of my objects and I also use this object on a form - will the variable and the form just
reference it.
>>
>>I thought you already did it so form
reference control. When you dropped control in design time onto the form, these will be completely different objects. You can do it another way:
>>
>>goApp = CREATEOBJECT("oAppObject")
>>...
>>{form}.AddProperty("goMainApp")
>>{form}.goMainApp = goApp
>>
>>Only this way form and goApp variable will reference the same object.
>>
>>
>>
>>>Vlad
>>>
>>>Between messages I just gave it a try and it doesn't.
>>>
>>>I do a:
>>>
>>>goApp = CREATEOBJECT("oAppObject")
>>>
>>>then fire up the form (which has the object dropped into it) and change a property on the form object, and it doesn't change it for goApp object.
>>>
>>>???
>>>
>>>Kev
>>>>YES.
>>>>
>>>>>Hi
>>>>>
>>>>>If I created a variable that creates one of my objects and I also use this object on a form - will the variable and the form just reference it.
>>>>>
>>>>>i.e if the form changes something on the object, will the variable also reference the same changes?
>>>>>
>>>>>Thanks
>>>>>Kev
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.