edmar1361303188 Posted July 1, 2002 Report Share Posted July 1, 2002 Olá, como faço para colocar o foco em uma determinada variável get ? ex: Do Case Case arg=1 Redefine Get mcod ID 103 of oDlgPesqc Picture "99999" Valid mcod>0 Case arg=2 Redefine Get mnome ID 104 of oDlgPesqc Picture "@!" Valid !empty(mnome) quero colocar o foco na variável mnome. Obrigado! Quote Link to comment Share on other sites More sharing options...
gilmer Posted July 1, 2002 Report Share Posted July 1, 2002 Olá, Favor mostrar um pouco do seu código citação: Olá, como faço para colocar o foco em uma determinada variável get ? ex: Do Case Case arg=1 Redefine Get mcod ID 103 of oDlgPesqc Picture "99999" Valid mcod>0 Case arg=2 Redefine Get mnome ID 104 of oDlgPesqc Picture "@!" Valid !empty(mnome) quero colocar o foco na variável mnome. Obrigado! id=quote>id=quote> Quote Link to comment Share on other sites More sharing options...
edmar1361303188 Posted July 2, 2002 Author Report Share Posted July 2, 2002 Olá, como vc me pediu, estou enviando um pouco mais do meu código: *---------------------- Static Function PesqCli *---------------------------------------------------------- Private oDlgPesqcl Define Dialog oDlgPesqcl Resource "PesqCli" Redefine Button ID 101 of oDlgPesqcl Action PesqC(1) Redefine Button ID 102 of oDlgPesqcl Action PesqC(2) Redefine Button ID 103 of oDlgPesqcl Action PesqC(3) Redefine Button ID 104 of oDlgPesqcl Action PesqC(4) Redefine Button ID 105 of oDlgPesqcl Action PesqC(5) Redefine Button ID 106 of oDlgPesqcl Action PesqC(6) Activate Dialog oDlgPesqcl Centered Return(Nil) *------------------------- Static Function PesqC(arg) *---------------------------------------------------------- Private oDlgPesqc,mcod:=0,mnome:=space(len(nome)),mcomp:=space(len(complem)),; mcid:=space(len(cidade)),mcnpj:=space(len(cgc)),mcont:=space(len(contato)) oDlgPesqcl:End() Define Dialog oDlgPesqc Resource "EntraDadCli" Redefine Button ID 101 of oDlgPesqc Action AchaCli() Redefine Button ID 102 of oDlgPesqc Action oDlgPesqc:End() Do Case Case arg=1 Redefine Get mcod ID 103 of oDlgPesqc Picture "99999" Valid mcod>0 Case arg=2 Redefine Get mnome ID 104 of oDlgPesqc Picture "@!" Valid !empty(mnome) Case arg=3 Redefine Get mcomp ID 105 of oDlgPesqc Picture "@!" Valid !empty(mcomp) Case arg=4 Redefine Get mcid ID 106 of oDlgPesqc Picture "@!" Valid !empty(mcid) Case arg=5 Redefine Get mcnpj ID 107 of oDlgPesqc Picture "@R 99.999.999/9999-99" Valid !empty(mcnpj) Case arg=6 Redefine Get mcont ID 108 of oDlgPesqc Picture "@!" Valid !empty(mcont) Otherwise EndCase Activate Dialog oDlgPesqc Centered Return(Nil) Quote Link to comment Share on other sites More sharing options...
Admin1361303104 Posted July 2, 2002 Report Share Posted July 2, 2002 Olá, Pq vc não desabilita o primeiro Get com a cláusula when .f. citação:Olá, como faço para colocar o foco em uma determinada variável get ? ex: Do Case Case arg=1 Redefine Get mcod ID 103 of oDlgPesqc Picture "99999" Valid mcod>0 Case arg=2 Redefine Get mnome ID 104 of oDlgPesqc Picture "@!" Valid !empty(mnome) quero colocar o foco na variável mnome. Obrigado! id=quote>id=quote> 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.