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