>>>From a digit (1 to 7) how do I get the day? I forgot if there is a native function in Fox to do that.
>>>
>>>For example
>>>
>>>GiveMeTheDay( 2) would give a result of "Monday"
>>
>>Try
>>
>>FUNCTION cWeekDay
>> LPARAMETERS;
>> tnDayNumber
>>
>> RETURN CDOW(DATE()-DOW(DATE(),0)+tnDayNumber)
>>ENDFUNC
>>
>
>If you omit the Function wrapper, this is a true one-liner. I like this (and it seems I did write one like that years ago).
>
>We didn't have a good date challenge here for months. This refreshed my day.
I have done this a decade ago or so to do some stuff on weeks base. :) Bsic idea must comes out of UT those days ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]