by Silvio.Falconi » Wed Jan 10, 2018 10:44 pm
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
- Code: Select all Expand view
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 nColor
but I have often the same or similar color
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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