Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use DATE type in Combo Box
Message
From
13/01/1999 00:04:04
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00175027
Message ID:
00175342
Views:
43
PMFJI.

Sunny,

You are now intializing aDate in the DE? I suggest that instead, try this:
1. Add a new property to form. Call it aDate[1] && The # of elements does not matter, it just tells VFP that it is an array property
2. Change your sql to SELECT INTO ARRAY thisform.aDate && As DF suggested in one alternative
3. Just for debugging purposes, I would check the array, to make sure it returns what you expect.

HTH


>Perhaps I know the problem but I don't know how to solve it.
>
>The properities of combo box are
>
>combo.ControlSource = TBL.date
>combo.Format = D
>combo.InputMask = {99/99/9999}
>combo.RowSourceType = Array
>combo.RowSource = adate
>
>TBL is a FREE TABLE which is convert from Foxpro2.6!
>
>When I remove the ControlSource, there is no error again. I think the ControlSource caused error.
>
Previous
Reply
Map
View

Click here to load this message in the networking platform