Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dates with Combo Boxes
Message
 
 
To
04/05/2004 16:15:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900923
Message ID:
00901006
Views:
17
Jeffrey,

Use an array property aDates with 2 columns, the first being your displayed values, the second being your desired output format. Set the BoundColumn = 2, BoundTo = .t., RowSource = this.aDates, RowSourceType = array, columnWidths = 200,0.

In the GotFocus() of the second cbo have it initialize based on the selected value of the first cbo.

>I have two combo boxes. First one is Start_date combo and teh second is end_date combo. I want the following to happen:
>
>Allow teh users to select a start date within the following parameters:
>
>1. Combo box displays the format (ie Wednesday, 5 May 2004)
>2. Start date has to be from todays date ONLY.
>3. Return the date in the format of MM/DD/YYYY to a memory variable for storage.
>4. Can only display up to 180 days out
>
>Once they make a selection of start date, the second combo box returns the following:
>1. Only starts on the date that the first combo box has stored in it and goes out only 180 days.
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