There are 2 class libraries which is L1Class and L2Class. L1Class has a class L1lbl which is based on the Label class of the VFP base classes. L2Class has 2 classes L2lbl and L2container. L2lbl is based on the L1lbl of the L1Class. L2container is based on the VFP base class container. The L2container contains coding which uses the addobject method to add the L2lbl. In the init method of a form, using the addobject to add the L2container will result in the error "L1Class.vcx is not found". The error will not appear if ANY of the followings is true:
1. the L1Class.vcx is in the directory.
2. the object L1lbl is added to the form.
3. another form which has L1lbl has been run.
It seems to me that the issue is related to the class L1lbl is never loaded into memory. I hope someone can explain this issue and provide me a solution since the 3 ways to suppress the error is not a feasible solution.
Thank you.
1. the L1Class.vcx is in the directory.
2. the object L1lbl is added to the form.
3. another form which has L1lbl has been run.
It seems to me that the issue is related to the class L1lbl is never loaded into memory. I hope someone can explain this issue and provide me a solution since the 3 ways to suppress the error is not a feasible solution.
Thank you.