Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Clone an Object?
Message
 
To
24/01/2002 14:27:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00609999
Message ID:
00610091
Views:
19
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform