Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Superclass
Message
From
25/05/1997 05:10:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
23/05/1997 18:24:52
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00033281
Message ID:
00033573
Views:
47
> >This way all the base classes can share methods _and_ properties ... or > >am I missing something? > > How will they share properties? Maybe I didn't understand your idea. Well, for instance, I hate Arial and put an user-definable (via a public variable which will once be read from an .ini or registry) font. I have to do it in _all_ the classes I make. I haven't worked out yet how to do it for grids, without having to SetAll() in grid's show event - I'd like to have a Column/Header/Cell class. Now suppose I want to change it for all the classes. Real OOP would be to go upstream to the highest class definition in the class hierarchy - and there's none. You have a dozen of them, each with its own set of defaults (some of them far away from my taste). I guess it'll come down to writing a routine to scan my .vcx, cram some "Property=value" lines into memo fields and recompile the .vcx. Another guess: if in that way I create properties which never existed in some of the base classes, but will exist in my classes, no harm will be done - just there will be no code to react upon the change of these properties.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform