Jump to content
Fivewin Brasil

Get


edmar1361303188

Recommended Posts

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>
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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>
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...