Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copies of objects
Message
 
To
18/07/1996 12:56:38
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00004180
Message ID:
00004210
Views:
36
>>Am I missing something or is there no way to make a copy of an object?
>>
>>I'd like to do something like
>>
>>ox2 = OCOPY(ox1)
>>
>>(like in C? oooops)
>>but haven't found any way of doing it yet.
>>Anyone know how?
>
>Yes, there is a way to do that. I am not sure of the syntax but you might want to check for the CloneObject().

Another way is to fire the object again & assign it to an array object.

oX[n] = createobject(...)

Where 'n' is the increment.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform