Here's a sample project that shows the behavior I'm having.
https://github.com/Tracy-P/vfpmemberclass

run foxbin2prg on the pj2 with the * as a parameter.

I don't see anything out of place in the SCX. I do see the classlibrary is
showing as an FXP.

Thank you,
Tracy

-----Original Message-----
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Richard
Kaye
Sent: Wednesday, February 10, 2021 4:27 PM
To: profoxt...@leafe.com
Subject: RE: MemberClass update

I've run into similar problems in the past and it's usually a missing or
mis-named property. The error message implies this is a VCX-based class? If
so, do you have a copy of Rick's HackCX tool? I've found that to be really
helpful when trying to hunt this down.

--

rk

-----Original Message-----
From: ProfoxTech <profoxtech-boun...@leafe.com> On Behalf Of Tracy Pearson
Sent: Wednesday, February 10, 2021 4:09 PM
To: profoxt...@leafe.com
Subject: MemberClass update

I have an established class library and I'm wanting to now update the base
class properties MemberClass and MemberClassLibrary.
I have created the appropriate prg based Column and Header classes.

A form or class that uses the changed baseGrid class works fine.

A form or class that uses a class that contains the baseGrid is unable to
load that class.

Let's explain the hierarchy.
baseLibrary contains baseGrid, and baseContainer

moduleLibrary contains a subclass of baseContainer that has a baseGrid in
moduleTransactionsDetail.
This moduleTransactionDetail class has additional controls like buttons and
labels for use in multiple places.

Error loading file - record number 233.  moduleTransactionDetail <or one of
its members>.  Parent : Cannot add this object to a Grid

All the class libraries and forms will build without errors. Attempt to
modify them, or run them and these errors occur.

Does anyone have suggestions why these would be failing?

                DEFINE CLASS basecolumn as Column

                fontname = "Segoe UI"
                fontsize = 10
                name = "column"

                HeaderClass = "baseheader"
                HeaderClassLibrary = this.ClassLibrary

                ENDDEFINE 

                DEFINE CLASS baseheader as Header 

                fontname = "Segoe UI"
                fontsize = 10
                caption = "header"
                name = "header"

                ENDDEFINE

I did find I needed to put the name property in the PRG based class to get
the first layer working.

Thank you,
Tracy


[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/000d01d70000$85a015a0$90e040e0$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to