Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Days of teh Month
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00695739
Message ID:
00696355
Vues:
8
>I am writing an applicaition for a teacher. They would like to be able to enter in a school term begin date and end date. I need to be able to generate a screen that would have teh following:
>
>School term: August 2002 - June 2003
>days of the month (ie August 12,13, etc etc)
>
>Anyone know how I can generate that and put it on the screen?

I usually make a form with 5 rows and 7 columns of command buttons.
The buttons are all invisible and get numbered and made visible depending on the month.
I check what day the month starts on and use that as an initial offset for numbering things. 0 for Sunday 7 for Saturday. If the week begins on Wednesday then I would begin numbering at position 1,4 (Wednesday) going across and down for as many days as there are in the month. I usually put them in a container which makes iterating through the controls easy and makes the control reusable. You don’t have to use a command button. You can use anything you want. If you need to display text, a textbox may be better.
Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform