Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change the date, year and month
Message
De
15/01/2002 12:47:40
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
À
15/01/2002 12:40:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00604905
Message ID:
00604964
Vues:
31
Thank you very much Centin. I will use the same approach for week and month.
- Ravi
>*...
>>Instead do this :
>>
>>* Year back
>>thisform.oleControl1.Object.value = dtot(gomonth(date(),-12))
>>* Year forward
>>thisform.oleControl1.Object.value = dtot(gomonth(date(),12))
>>
Cetin
>
>If you would do it based on current value of datetimepicker :
>
>
>* Year back
>with thisform.oleControl1.Object
> .value = dtot(gomonth(ttod(.value),-12))
>endwith
>* Year forward
>with thisform.oleControl1.Object
> .value = dtot(gomonth(ttod(.value),12))
>endwith
>
Cetin
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform