Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid subclassing question
Message
De
07/06/2002 05:06:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00665694
Message ID:
00665817
Vues:
19
>Here's the problem:
>
>Consider 3 grid classes - A,B,C. A is our parent class with 5 columns defined on it. B inherits from A and has one extra column. C also inherits from A with two extra columns on it. What we would like to do is add a column to class A and have the other two classes inherit the new column since it will be a column that would be used for all of our grids.
>
>We're finding that this simple inheritance after the fact doesn't work - probably because the children have already overridden the grid. Does anyone know of a simple way to achieve what we're after without having to redo all the work in the children classes? Maybe even a VCX hack?
>
>Laterness,
>Jon

Jon,
AFAIK that wouldn't work < g >. I'd try adding the A's extra column in A.init code (it'd kick in after column inits).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform