Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control_Initialize Question
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00607874
Message ID:
00608174
Vues:
28
This message has been marked as the solution to the initial question of the thread.
Create a property in your control that will receive an array (or a recordset or any other structure) and fill your combo into the Let (or Set) property procedure.

Let me know if you need a small sample.

>The array I have is filled from a table of products. I could
>have opened the products table in the Orders form and looped
>once for each of the 12 Combos, and the loaded each combo that
>way.
>
>It would be even poorer design to place this code anywhere in
>the orders form. Thats the whole reason for creating this
>control - so I can do the code once and use the control as many
>times as I need on any form in my application.
>
>This is not an activex control It's a control which is part
>of the project. It would be no different from referencing
>a public array from within a command button or listbox.
>
>Having said that, I'm fairly new to VB. In VFP, when you create
>a control, you assume the table is opened in the Load event,
>before any other event occur. The data is available when the
>control starts it's Init. Thats what I'm trying to do here.
>
>So how do I fill a combo with values from an array in a combo
>and keep it generic at the same time?
>
>Thanks
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform