Home > Archive > FoxPro Help and Support > May 2005 > datepicker









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author datepicker
Kris

2005-05-26, 8:25 pm

How can I pick up the date the the user selects using datepicker? I am
trying to learn how to use forms and would like to use this feature.

Thanks in advance for the help
BlackSabbath

2005-05-27, 3:24 am

ThisForm.DatePicker1.object.day = N
ThisForm.DatePicker1.object.month = N
ThisForm.DatePicker1.object.year = N

ThisForm.DatePicker1.value = T

Le Thu, 26 May 2005 14:58:01 -0700, Kris <Kris@discussions.microsoft.com>
a écrit:

> How can I pick up the date the the user selects using datepicker? I am
> trying to learn how to use forms and would like to use this feature.
>
> Thanks in advance for the help


Kris

2005-05-27, 11:24 am

Sorry to be a problem. But do I put this on my form or on my command button
or were?

"BlackSabbath" wrote:

> ThisForm.DatePicker1.object.day = N
> ThisForm.DatePicker1.object.month = N
> ThisForm.DatePicker1.object.year = N
>
> ThisForm.DatePicker1.value = T
>
> Le Thu, 26 May 2005 14:58:01 -0700, Kris <Kris@discussions.microsoft.com>
> a écrit:
>
>
>

BlackSabbath

2005-05-27, 11:24 am

DatePicker is an active X

1. Using an active X is not the simpliest way to learn the beginning of
using form...
2. You put the DatePicker on your form
3. In the change event of the DT, write

WAIT "You choose : " + TTOC(This.value) WINDOWS

4. You put a button on the form
In the click event, put
cTemp = IIF(DATE() = TTOD(ThisForm.DatePicker1.object.value),;
"You dont choose a date (or it's today)",;
"You choose : " + TTOC(ThisForm.DatePicker1.object.value) + "therefore
you click on me!!!";
)
WAIT cTemp WINDOWS

5. Run the form
choose a day
click on the button




Le Fri, 27 May 2005 08:48:06 -0700, Kris <Kris@discussions.microsoft.com>
a écrit:
[color=darkred]
> Sorry to be a problem. But do I put this on my form or on my command
> button
> or were?
>
> "BlackSabbath" wrote:
>

Paul Lee

2005-05-30, 9:24 am

"=?Utf-8?B?S3Jpcw==?=" <Kris@discussions.microsoft.com> wrote in
news:2AA2F5B0-F3BA-4754-A5A0- 207F9CA3257F@microso
ft.com:

> How can I pick up the date the the user selects using datepicker? I am
> trying to learn how to use forms and would like to use this feature.
>.....


There is a simplified DatePicker form on our website on the
FoxPro page. Fairly simple to use:

DO Form Cal With StartingDate TO PickedDate

-----------------------------------------------------------------
Paul Lee ........ Abri Technologies ........ http://www.abri.com/
'Recover' - top rated FoxPro file repair utility.
-----------------------------------------------------------------
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com