Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subclass issue

Status
Not open for further replies.

pcwc66

IS-IT--Management
Dec 14, 2001
163
US
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.

 
Are you loading them into memory with then ADDITIVE clause?
SET CLASSLIB TO L1CLASS.VCX ADDTITIVE
SET CLASSLIB TO L2CLASS.VCX ADDTITIVE

That way they both stay in memory.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top