Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Class by Mark McCasland
Message
From
24/07/2001 16:27:05
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Combo Class by Mark McCasland
Miscellaneous
Thread ID:
00534643
Message ID:
00534643
Views:
64
I'm using the above but having a problem. There is code in the Init that calls the mQuery method which contains the SQL to populate the array. When this code runs it causes an error as the array is basically empty (other than what is added via Mark's code). The problem is that the SQL is run on a view that isn't populated until after the Combo.Init runs, so there are no records available. I've gone through the Event Tracking and as far as I can tell there's no logical place to put a Requery of the view I'm trying to use. I open the database, tables and views in the form's Load and then the views are populated using parameters in the form's Init and other events that occur afterwards. How can I have the view available for the Combo.Init if the variables that are passed to the view aren't known until after the form's Init? Thanks!

Regards, Renoir
Next
Reply
Map
View

Click here to load this message in the networking platform