I am new to VFP and am trying to dynamically add a container to one of my
forms.

This container is inherited from container, and contains some custom code.
Anyways I am trying to
use the forms addobject method, and VFP says that the class cannot be found.

Is there something I have to do so that my inherited class shows up in the
default search path.

I have also tried passing the library that contains the inherited class with
no luck.

Re: Adding a Container by Fernando

Fernando
Tue Jun 28 13:53:42 CDT 2005

Hi Bob:

You have 2 choices:

1) Declare de library with SET CLASSLIB TO <YourLib.vcx> then use the form's
ADDOBJECT

2) Use the form's NEWOBJECT in the form: Form.NewObject("ObjName",
"ClassName", "ClassLib.vcx")


Regards,

Fernando D. Bozzo
VFP6/SP5
Madrid/Spain


"Bob Welke" <frank@aol.com> escribió en el mensaje
news:11c369t7qf8o0b1@corp.supernews.com...
> I am new to VFP and am trying to dynamically add a container to one of my
> forms.
>
> This container is inherited from container, and contains some custom code.
> Anyways I am trying to
> use the forms addobject method, and VFP says that the class cannot be
found.
>
> Is there something I have to do so that my inherited class shows up in the
> default search path.
>
> I have also tried passing the library that contains the inherited class
with
> no luck.
>
>



Re: Adding a Container by Bob

Bob
Tue Jun 28 14:13:56 CDT 2005

Thanks for de help :p

"Fernando D. Bozzo" <fdbozzo@lycos.es> wrote in message
news:eQPfPMBfFHA.2928@TK2MSFTNGP10.phx.gbl...
> Hi Bob:
>
> You have 2 choices:
>
> 1) Declare de library with SET CLASSLIB TO <YourLib.vcx> then use the
> form's
> ADDOBJECT
>
> 2) Use the form's NEWOBJECT in the form: Form.NewObject("ObjName",
> "ClassName", "ClassLib.vcx")
>
>
> Regards,
>
> Fernando D. Bozzo
> VFP6/SP5
> Madrid/Spain
>
>
> "Bob Welke" <frank@aol.com> escribió en el mensaje
> news:11c369t7qf8o0b1@corp.supernews.com...
>> I am new to VFP and am trying to dynamically add a container to one of my
>> forms.
>>
>> This container is inherited from container, and contains some custom
>> code.
>> Anyways I am trying to
>> use the forms addobject method, and VFP says that the class cannot be
> found.
>>
>> Is there something I have to do so that my inherited class shows up in
>> the
>> default search path.
>>
>> I have also tried passing the library that contains the inherited class
> with
>> no luck.
>>
>>
>
>