May I advise you to *backup* before you do this replacement procedure with Thor? Koen
Op do 11 feb. 2021 om 21:05 schreef Eric Selje Eric@saltydogllc.com:
GoFish may be able to do this replacement.
On Thu, Feb 11, 2021 at 11:39 AM Tracy Pearson tracy@powerchurch.com wrote:
I believe I found my problem. I need to update the Properties of the baseGrid to set the name of Column to be BaseColumn, and the Methods to correctly reference the new names. Then I need to update the Class to baseheader, and the Parent to
reference
the new column name on the records that are headers. The other controls in the column also need the Parent updated.
With 200ish grids in the project in both ClassLibs and Forms, I'm going
to
see if I can find and replace a lot of these with some code.
Thanks for making take another look at the tiny details.
Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of
Tracy
Pearson Sent: Wednesday, February 10, 2021 6:00 PM To: profoxtech@leafe.com Subject: RE: MemberClass update
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-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Wednesday, February 10, 2021 4:27 PM To: profoxtech@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-bounces@leafe.com On Behalf Of Tracy
Pearson
Sent: Wednesday, February 10, 2021 4:09 PM To: profoxtech@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" ENDDEFINEI 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]