Topic closed for me ?????????????????????????????????????????????????????????
ColorStatus (nType,
dDate)
Function ColorStatus( nType, dFecha )
聽 聽local aGrad
聽 聽local nClrT 聽 聽 := CLR_BLACK
聽 聽DEFAULT nType 聽 := 0
聽 聽DO CASE
聽 聽 聽 case nType = 1
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 2
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0x00,0x80,0xff) , RGB(0x00,0x80,0xff) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 3
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0xff,0xff,0x80), RGB(0xff,0xff,0x80) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 4
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0xff,0x00,0x00), RGB(0xff,0x00,0x00) } }
聽 聽 聽 聽 聽nClrT := CLR_WHITE
聽 聽 聽 case nType = 5
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0xc0,0xc0,0xc0), RGB(0xc0,0xc0,0xc0) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 6
聽 聽 聽 聽 聽aGrad := { { 1, METRO_ORANGE, METRO_ORANGE } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 7
聽 聽 聽 聽 聽aGrad := { { 1, METRO_LIME, METRO_LIME } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 8
聽 聽 聽 聽 聽aGrad := { { 1, METRO_CRIMSON, METRO_CRIMSON } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 9
聽 聽 聽 聽 聽aGrad := { { 1, METRO_OLIVE, METRO_OLIVE } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 10
聽 聽 聽 聽 聽aGrad := { { 1, METRO_STEEL, METRO_STEEL } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLUE
聽 聽 聽 Otherwise
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
聽 ENDCASE
return { aGrad, nClrT }
or
METHOD ColorStatus( nType, dFecha ) CLASS SampleCalex
METHOD ColorStatus( nType, dFecha ) CLASS SampleCalex
聽 聽local aGrad
聽 聽local nClrT 聽 聽 := CLR_BLACK
聽 聽DEFAULT nType 聽 := 0
聽 聽DO CASE
聽 聽 聽 case nType = 1
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 2
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0x00,0x80,0xff) , RGB(0x00,0x80,0xff) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 3
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0xff,0xff,0x80), RGB(0xff,0xff,0x80) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 4
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0xff,0x00,0x00), RGB(0xff,0x00,0x00) } }
聽 聽 聽 聽 聽nClrT := CLR_WHITE
聽 聽 聽 case nType = 5
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0xc0,0xc0,0xc0), RGB(0xc0,0xc0,0xc0) } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 6
聽 聽 聽 聽 聽aGrad := { { 1, METRO_ORANGE, METRO_ORANGE } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 7
聽 聽 聽 聽 聽aGrad := { { 1, METRO_LIME, METRO_LIME } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 8
聽 聽 聽 聽 聽aGrad := { { 1, METRO_CRIMSON, METRO_CRIMSON } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 9
聽 聽 聽 聽 聽aGrad := { { 1, METRO_OLIVE, METRO_OLIVE } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLACK
聽 聽 聽 case nType = 10
聽 聽 聽 聽 聽aGrad := { { 1, METRO_STEEL, METRO_STEEL } }
聽 聽 聽 聽 聽nClrT 聽 聽 := CLR_BLUE
聽 聽 聽 Otherwise
聽 聽 聽 聽 聽aGrad := { { 1, RGB(0x9a,0xcd,0x32), RGB(0x9a,0xcd,0x32) } }
聽 ENDCASE
return { aGrad, nClrT }
both the function and the method use the variable
dfecha but yeah in the script that variable is not used and compiling with harbor makes me error on compilation while in xharbour the compile goes ok
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com