Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use DATE type in Combo Box
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00175027
Message ID:
00175119
Views:
45
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
Previous
Reply
Map
View

Click here to load this message in the networking platform