Not sure if this helps but see:
Forum: Visual FoxPro Category: Coding, syntax & commands Title: Copying an Object - avoiding single object references Thread #
365455 Message #
365455 >Hi everybody!
>
>I have no idea how I can clone an object in VFP, or may be something like this.
>I have found a CloneObject methid, but it works only in design mode.
>
>Here is the situation:
>I have object on my form. Let's say ThisForm.Text1.
>My form have property ThisForm.CurrentObject.
>
>Then ...
>ThisForm.CurrentObject=ThisForm.Text1
>ThisForm.RemoveObject("Text1")
>
>I need my ThisForm.CurrentObject to hold the Text1 for further use, but :-( it NULLs after Text1 is being removed.
>
>Does anyone has an idea how I can do this?
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!