Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Class by Mark McCasland
Message
 
 
À
24/07/2001 16:27:05
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00534643
Message ID:
00534740
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>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

Add a method to the combo, call it whatever you like. Move all the Init code to that method. When you are ready to load the data into the combo, issue a call to that method.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform