Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing MemberClass, and hacking SCX
Message
De
09/06/2005 11:16:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01021666
Message ID:
01021819
Vues:
17
>>Hi all, I recently changed the memberClass and memberClassLibrary properties of my grid base class.
>>I new I was goin to break all the grids in forms, but I thought I could solve it by hacking the SCX files.
>>I tried to hack them but with bad results.
>>
>>Does someone know what do I have to tweak in the SCX so that the columns defined in my grids become columns of the class defined in myGrid.memberClass?
>>
>>Thanks is advance,
>>Javier.
>
>Try this but do a good backup first, keep in mind I not tested it:
>
>USE YourForm.SCX
>SET FILTER TO BaseClass == "Grid"
>LOCATE
>BROWSE
>
>*Go to Properties field and change MemeberClass row
>
>After that recompile the form

Thanks for the answer. I tried it but I get the followin error: "Error loading file record ...: Header1 or one of its members. Parent: Object class is invalid for this container"

I have started with a very simple column class defined in a PRG:
define Class jColumn as Column
    procedure init()
        return doDefault()
    endproc
endDefine
And it does not work. It's even worse if I set the headerClass and headerClassLibrary properties.

Thanks,
Javier.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform