Luiz Fernando Posted October 17, 2016 Report Share Posted October 17, 2016 Colegas não consigo mudar o formato da pict do exemplo abaixo, ele só muda qdo estou no proprio GET redefine get oGet[3] var aCliente[D_CNPJ_CNPF] pict cPict id 103 of oCliente ; color COR_GET1 when wTarefa[2] update conforme uma condição a variavel cPict muda seu formato, mais isto só ocorre qdo o focus esta neste GET, com update ou refresh não atualiza. Obrigado Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 17, 2016 Report Share Posted October 17, 2016 Tente assim: oGet:Picture := cMascara Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 17, 2016 Report Share Posted October 17, 2016 Exemplo: If cTipo="J".and.oGet:cPicture!="@R 99.999.999/9999-99" cCgc:=Space(14) oGet:cPicture:="@R 99.999.999/9999-99" oGet:oGet:Picture:="@R 99.999.999/9999-99" oGet:Refresh() ElseIf cTipo="F".and.oGet:cPicture!="@R 999.999.999-99" cCgc:=Space(11) oGet:cPicture:="@R 999.999.999-99" oGet:oGet:Picture:="@R 999.999.999-99" oGet:Refresh() Endif Theotokos 1 Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted October 17, 2016 Author Report Share Posted October 17, 2016 Tente assim: oGet:Picture := cMascara Kapiaba já tinha visto desta forma aqui no forum, mais não deu certo. if aCliente[D_TIPO]="F" cPict:="999.999.999-99 " else cPict:="99.999.999/9999-99" endif obj:cPicture:=cPict Obrigado Quote Link to comment Share on other sites More sharing options...
aferra Posted October 17, 2016 Report Share Posted October 17, 2016 embora já vi nos post acima, eu uso assim e dá certo. <SeuObj>:oGet:Picture := "@R 99.999.999/9999-99" outro que mudo na mesma função <SeuObj>:oGet:Picture := "99999" Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted October 17, 2016 Author Report Share Posted October 17, 2016 Vw Kapiaba e Aferra, agora deu certo o problema que não estava colocando o oGET no meio obj:oGet:cPicture:=cPict Obrigado Quote Link to comment Share on other sites More sharing options...
aferra Posted October 18, 2016 Report Share Posted October 18, 2016 eu sabia, eu sabia, eu sabia, kkkkkkkkkkkkkkkkkkkkkkkkkkkk abraços Luiz Fernando and kapiaba 2 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted October 18, 2016 Report Share Posted October 18, 2016 kkkkkkkkkkkkkkkkkkkkkkkkkkk, novato é novato. Não manja nada, né Alessandro? kkkkkkkkkkkkkkkkkkkkkkkkkkk aferra and Luiz Fernando 2 Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted October 18, 2016 Author Report Share Posted October 18, 2016 kkkkkkkkkkkkkkkkkkkkkkkkkkk, novato é novato. Não manja nada, né Alessandro? kkkkkkkkkkkkkkkkkkkkkkkkkkk sempre aprendendo com os mestres do fivewin rsrsrsrsrs aferra and kapiaba 2 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.