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:
00175045
Views:
63
It does not look as reliable way. If you want to base your combo on array then it should be either public array or form property-array. Also, in what DE event you run this SELECT? It seems that tables are not opened yet if you do it e.g. from DE.BeforeOpenTables. Ultimately, array is not the best combo.rowsource, cursor or values might be better.

>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.
>
>I am using VFP6
>
>Sunny
>
>>Where is the array defined and what type of data is the ControlSource for the combobox?
>>
>>>Yes, I have set boundto = .T. already.
>>>
>>>Sunny
>>>
>>>>>i want to use a array to store some data. All data are in 'date' type. The data will be used to be a RowSoure in combo box. I can do it in form designer without any error. But when I run the form, an error comes out that the data type is mismatched in the combo box. But, although I have an error, the form and combo box still can work.
>>>>>
>>>>>Do you know what's wrong?
>>>>>
>>>>>Any idea is welcome.
>>>>
>>>>Usually, it all indicates that you forgot to set Combo.BoundTo=.T.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform