on xharbour guide I saw there is a function converts a numeric week day to its name
NtoCDoW( <nDayOfWeek> ) --> cDayName
But with fwh not run ok
How I can converte this function in fwh ?
Silvio wrote:on xharbour guide I saw there is a function converts a numeric week day to its name
NtoCDoW( <nDayOfWeek> ) --> cDayName
Function NtoCDoW( nNumber )
Local nEle, nDay, dDate
If aNames == Nil // aNames could be a static variable to avoid being calculated every call
aNames := Array( 7 )
dDate := Date()
For nEle := 1 To 7
nDay := Dow( dDate )
aNames[ nDay ] := cDoW( dDate ++ )
Next
EndIf
Return aNames[ nNumber ]
Silvio wrote:on xharbour guide I saw there is a function converts a numeric week day to its name
NtoCDoW( <nDayOfWeek> ) --> cDayName
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 73 guests