Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to implement the Calendar
Message
De
26/08/1999 12:56:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00258012
Message ID:
00258034
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform