Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to implement the Calendar
Message
From
26/08/1999 12:56:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00258012
Message ID:
00258034
Views:
13
>Hi,
>can anybody show me, how I can implement the Calendar in a form?
>I have a normal datefield (thisform.text1), wich is to be supported when someone clicks upon this field.
>I know how to bring the class (Active-X) in the form, but not how to serve my field.


Hi Walter,

I've never used the Calendar control, but there is a ControlSource property, so you can just put your field in there and it should work like any other control.

If you need to do things otherwise, there is a AfterUpdate event that is fired whenever a new date is selected. From there, you can use the Year, Month and Day properties of the calendar control. For example, you could type something like this in the AfterUpdate event:
*** ActiveX Control Event ***
DoDefault()
Local ldNewDate
ldNewDate = Date(This.Year, This.Month, This.Day)
Messagebox("Selected date is " + DTOC(ldNewDate))
Hope this helps, and greetings from Canada!
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform