Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class dependence
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Class dependence
Miscellaneous
Thread ID:
00857593
Message ID:
00857593
Views:
64
I have a class for calendar lookup, which is a container with textbox and a button. When button is clicked, calendar class is created and is popped up. The container and the calendar pop-up class reside in the same .vcx file (MYCLASSLIB.VCX). At the top of the application I
SET CLASSLIB TO MYCLASSLIB ADDITIVE where calendar classes reside. All works well.

But I get error when using this container class in Stonefield Query (SFQuery). When user selects a date field for the filter, the calendar control is displayed. But when user clicks on calendar popup button, error "Class definition Calendar not found" appears. But if I add a line SET CLASSLIB TO MYCLASSLIB ADDITIVE in the click method of the button, before creating object of class Calendar, program works without the error.

My question is, why within my program, the statement SET CLASSLIB TO MYCLASSLIB ADDITIVE is enough to allow Calendar object to be created. But when used from SFQUERY I have to repeat the statement again?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform