Jump to content
Fivewin Brasil

Mudar mascara pict


Luiz Fernando

Recommended Posts

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

 

Link to comment
Share on other sites

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
	

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...