In VFP you cannot create class that isn't based on one of the VFP classes. However you can hide PEM's you don't need when you create your class. For example,
DEFINE CLASS test AS custom
Name = "test"
HIDDEN addobject
HIDDEN cloneobject
HIDDEN comment
HIDDEN controlcount
HIDDEN controls
HIDDEN height
HIDDEN newobject
HIDDEN objects
HIDDEN picture
HIDDEN readexpression
HIDDEN readmethod
HIDDEN removeobject
HIDDEN resettodefault
HIDDEN saveasclass
HIDDEN showwhatsthis
HIDDEN tag
HIDDEN whatsthishelpid
HIDDEN width
HIDDEN writeexpression
HIDDEN writemethod
HIDDEN name
HIDDEN classlibrary
HIDDEN helpcontextid
HIDDEN parent
HIDDEN parentclass
HIDDEN class
HIDDEN baseclass
ENDDEFINE
>Hi
>
>How do I create a 'Clean' class? By that I mean a class that doesn't inherit anything from other base classes. For example when I
>
>
DEFINE CLASS test as Custom
>
>I end up with a whole lot of other variable that I don't want. What I would like is something similar to the named object that is created by the
SCATTER command.
>
>I haven't been able to figure out (form the Help) how to define a structure that is not a class, yet equally I cannot create a class without any overhead either.
>
>Could some kind person enlighten me.
>
>Ta very muchly
>regards
>Geoff Scott
--sb--