General information
Category:
Forms & Form designer
>I have a form in which I am using the Calendar OCX supplied with VFP.
>
>On the form the user selects a billing start date and then a billing end date. I want the calendar to display the 'default' end date that is specified in this code in a command button:
>
>DO CASE
>
> CASE month(thisform.calendar.value) = 1
> thisform.calendar.value = thisform.startdate + 30
> ** the start date is stored in thisform.startdate
>
> CASE month(thisform.calendar.value) = 2
> thisform.calendar.value = thisform.startdate + 27
>
> CASE month(thisform.calendar.value) = 3
> thisform.calendar.value = thisform.startdate + 30
>
> .... and so on until December
>
> ENDCASE
> thisform.refresh()
>
>The calendar does not refresh to display the new 'default' value.
>
>Any ideas as to what I'm missing here? Or, is there an easier way to do this?
>
>thanks, AL
I have a question for you about the Calendar and how you are using it.
I have a form where a starting date and ending date need to be entered.
I would like to give them the option to pop up the calendar to select the dates.
Questions are:
1) How do you have the calendar activated? With a command button which calls a
form that has the calendar in it? or is it on the current form?
2) How do you specify which textbox gets the date from the calendar?
I can do this in a 2.6 screen but I'm still have problems changing over to VFP5.
Thanks
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only