Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use DATE type in Combo Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00175027
Message ID:
00175119
Vues:
46
Sunny,

>I define the array in DataEnvironment by the command 'SELECT TBL.DATE FROM TBL INTO ARRAY ADATE'. The data type is DATE. The ControlSource data type is DATE too.

Move this code to the Init() of the combobox. Make the array a property of your combobox class and use this.aArrayName in the select. In my cCombobox class I defined an array maItems just for this purpose. I also added a SQL method to hold the SELECT statement for the cbo.

You could also make the array a property of the form, in which case you'd use thisform.aArrayName in the select.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform