jfaguiar Posted September 2, 2021 Report Share Posted September 2, 2021 Olá pessoal. Como faço para atribuir um cor diferente em uma célula? Exemplo: oBrw:aCols[4]:bStrData := { || TMPDETAL->VENCIMENTO}, se o conteúdo desse campo for menor que a data atual, pintar de vermelho. Obrigado. Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 2, 2021 Report Share Posted September 2, 2021 oBrw:aCols[3]:bClrStd := { || If( mitabla->micampo > 3, ; { CLR_WHITE, RGB(255,55,55) },; If( mitabla->micampo < 3, ; { CLR_BLACK, RGB(55,255,55) }, { CLR_BLACK, CLR_YELLOW } )) } Regards, saludos. Quote Link to comment Share on other sites More sharing options...
jfaguiar Posted September 2, 2021 Author Report Share Posted September 2, 2021 2 horas atrás, kapiaba disse: oBrw:aCols[3]:bClrStd := { || If( mitabla->micampo > 3, ; { CLR_WHITE, RGB(255,55,55) },; If( mitabla->micampo < 3, ; { CLR_BLACK, RGB(55,255,55) }, { CLR_BLACK, CLR_YELLOW } )) } Regards, saludos. Kapiaba, você é monstro! Obrigado. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.