Page 1 of 1

Adding to a Class Object.

Posted: Thu Sep 13, 2007 7:45 pm
by J-Bohanan
What I am trying to do is add Data/Var Statement to a Class Object that
has already been Defined. I wish to be able to do this from a data
driven Method from within the Class. My data will come from a control
file that is Loaded into a Array that is then Pass to the Class after the
Object is Created.

I am using xHarbour and Fivewin for Harbour 2.6 Feb Build 2007.

I have seen the Command in xHarbour.

EXTEND CLASS ... WITH DATA ....

EXTEND CLASS ... WITH METHOD ......

And I see how to use this Statement from within Hard Coded
Source Code. But What I What to do is to have this statements
to Be Data Driven. And Create from Control/Setup Files Loaded
into Data Arrays.

Posted: Thu Sep 13, 2007 11:42 pm
by Antonio Linares
Jim,

Just check how these commands are preprocessed and you will have the way to use them data driven. Please review hbclass.ch