>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:
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