Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Pointers, Copying an Object
Message
From
12/11/1999 17:31:59
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
12/11/1999 17:11:23
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00290782
Message ID:
00290797
Views:
28
Relation is the lightest class, but in VFP6, I understand, Custom is very fast too.
DEFINE CLASS Lightweight AS Relation
Prop1 = ''
Prop2 = ''
ENDDEFINE
or
CREATE CURSOR Junk (Prop1 C(10), Prop2 C(10))
APPEND BLANK
SCATTER NAME LightWeight
but here you get no way to define methods.

I think to get another object you will need to create it.
Charlie

>1. is there any way in VFP 6 to create an object that is not based on a VFP base class? I want to create a very small object (just a couple of properties) and I would like it to be very lightweight. If this is impossible, would the VFP line base class create the lightest weight object?
>
>2. If I have an object and I'd like to get another one, is there any way to copy it without reinstantiating? I don't want another pointer to the same object, I want another distinct object.
>
>Thanks, Chaim
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform