This code
- Code: Select all Expand view
- #include "fivewin.ch"
PROCEDURE main()
LOCAL dData, oGet
dData := msgDate()
RETURN
results in a shifted list of days of the calendar
#include "fivewin.ch"
PROCEDURE main()
LOCAL dData, oGet
dData := msgDate()
RETURN
@ 0.8, 0 SAY " " + SubStr( CDow( dDate - Dow( dDate ) + 2 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate - Dow( dDate ) + 3 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate - Dow( dDate ) + 4 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate - Dow( dDate ) + 5 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate - Dow( dDate ) + 6 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate - Dow( dDate ) + 7 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate - Dow( dDate ) + 8 ), 1, 3 ) COLOR CLR_HRED
@ 0.8, 0 SAY " " + SubStr( CDow( dDate ), 1, 3 ) + " " + ;
SubStr( CDow( dDate + 1 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate + 2 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate + 3 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate + 4 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate + 5 ), 1, 3 ) + " " + ;
SubStr( CDow( dDate + 6 ), 1, 3 ) COLOR CLR_HRED
dDate -= Day( dDate ) - 1
while DoW( dDate ) != 2 // Monday
dDate --
enddo
@ 0.8, 0 SAY " " + Left( NToCDow( 2 ), 3 ) + " " + ;
Left( NToCDow( 3 ), 3 ) + " " + ;
Left( NToCDow( 4 ), 3 ) + " " + ;
Left( NToCDow( 5 ), 3 ) + " " + ;
Left( NToCDow( 6 ), 3 ) + " " + ;
Left( NToCDow( 7 ), 3 ) + " " + ;
Left( NToCDow( 1 ), 3 ) COLOR CLR_HRED
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 100 guests