Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the date, year and month
Message
 
 
To
15/01/2002 12:02:16
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00604905
Message ID:
00604909
Views:
29
Try corrections below in bold
>Hi all:
>
>I have aform which has an OLEControl (calendar)in it. I have also added three command button named This Year, This Month and This Week. I also plan to use buttons with directional arrows to enable the user to scroll through another year, another month another week or the previous year, month and week.
>
>Objective: Clicking any of the buttons should change the data, month and year displayed in the OleControl to:
>
>1. This Year = current date
>2. This month = current date
>3. This week = current date
>
>The following code did not work for me.
>
>
thisform.oleControl1.year.value = year(<b>DATE()</b>)
>thisform.oleControl1.month.value = month(<b>DATE()</b>)
>thisform.oleControl1.day.value = <b>Day</b>(date())
>
>Am I on the right track? TIA.
>
>- Ravi
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform