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:
00607962
Vues:
29
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
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform