I'd like the click event of the calendar ocx to update the value
property of a textbox which is elsewhere on the same page. However, as soon
as any code I put in the click event begins to fire, the calendar reverts to
the default date, and I can only get a value for today. Guess I need a
calendar control tutorial.
Can anyone help?
-Lew

Re: Calendar control & VFP9b by Thierry

Thierry
Fri Jun 25 10:46:26 CDT 2004

Hi,

Try this, in the click event of the OleControl :

thisform.text1.value = this.object.value

Thierry.

"Lew" <lew@clsystems.com> a écrit dans le message de
news:ORM%235OsWEHA.3800@TK2MSFTNGP11.phx.gbl...
> I'd like the click event of the calendar ocx to update the value
> property of a textbox which is elsewhere on the same page. However, as
soon
> as any code I put in the click event begins to fire, the calendar reverts
to
> the default date, and I can only get a value for today. Guess I need a
> calendar control tutorial.
> Can anyone help?
> -Lew
>
>



RE: Calendar control & VFP9b by Leemi

Leemi
Fri Jun 25 10:56:25 CDT 2004

Hi Lew:

Take a look at these articles and see if they help:

200266 PRB: Form's KeyPress Is Not Fired When ActiveX Control Has Focus
http://support.microsoft.com/?id=200266

253785 PRB: Error When Setting DateTimePicker Control Programmatically
http://support.microsoft.com/?id=253785

158248 HOWTO: Use the Calendar Control to Enter and Display Dates
http://support.microsoft.com/?id=158248

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

> I'd like the click event of the calendar ocx to update the value
>property of a textbox which is elsewhere on the same page. However, as soon
>as any code I put in the click event begins to fire, the calendar reverts
to
>the default date, and I can only get a value for today. Guess I need a
>calendar control tutorial.
> Can anyone help?
>-Lew


Re: Calendar control & VFP9b by budieko

budieko
Sun Jun 27 19:47:39 CDT 2004

I put a calendar Ole on a form and return its value when closing the form
(convert year,month,day parts as a date value first).

And you can capture its value by this :

Do form calendarform To Thisform.textbox.value

Budieko

"Lew" <lew@clsystems.com> wrote in message
news:ORM#5OsWEHA.3800@TK2MSFTNGP11.phx.gbl...
> I'd like the click event of the calendar ocx to update the value
> property of a textbox which is elsewhere on the same page. However, as
soon
> as any code I put in the click event begins to fire, the calendar reverts
to
> the default date, and I can only get a value for today. Guess I need a
> calendar control tutorial.
> Can anyone help?
> -Lew
>
>