I have an archive where I put a field ncolor ( numeric) to show a color but when I insert a record it is allways black because the fields is empty (0) .
How I can to rando a color different every time I insert a new record ?
Any nice solution ?
I made this
but I have often the same or similar color
How I can to rando a color different every time I insert a new record ?
Any nice solution ?
I made this
Function Rando_Color(nColor)
nRed:=HB_Random(0, 255 )
nBlue:=HB_Random(0, 255 )
nGia:=HB_Random(0, 255 )
nColor:= nrgb(nRed,nGia,nBlue)
msginfo(ncolor)
return nColorbut I have often the same or similar color
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
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