Jump to content
Fivewin Brasil

VALID Não funciona quando tem somente um GET


Flavio A. Zago

Recommended Posts

Pessoal

Atualizei meu FWH26 p/ FWH28 e após isso estou

tendo problemas com a clausula VALID quando só

tem um GET.

Alguem pode me ajudar?

Abaixo um exemplo onde o VALID não funciona:

#Include "FiveWin.ch"

FUNCTION Main()

LOCAL oDlg,;

cGet := SPACE(1),;

oGet

DEFINE DIALOG oDlg TITLE "Teste GET (VALID)"

@ 2,6 GET oGet VAR cGet PICTURE '@R 9' OF oDlg SIZE 10, 10 VALID TestValid()

ACTIVATE DIALOG oDlg CENTERED

RETURN NIL

FUNCTION TestValid()

MSGINFO('PASSOU')

RETURN .T.

[]´s

Flavio

FWH28 + VERCE 4.3 + XHARBOUR 99.61 + WORKSHOP

FWH28 + XBUILD + XHARBOUR (ENTERPRISE)

Link to comment
Share on other sites

Pessoal

Atualizei meu FWH26 p/ FWH28 e após isso estou

tendo problemas com a clausula VALID quando só

tem um GET.

Alguem pode me ajudar?

Abaixo um exemplo onde o VALID não funciona:

#Include "FiveWin.ch"

FUNCTION Main()

LOCAL oDlg,;

cGet := SPACE(1),;

oGet

DEFINE DIALOG oDlg TITLE "Teste GET (VALID)"

@ 2,6 GET oGet VAR cGet PICTURE '@R 9' OF oDlg SIZE 10, 10 VALID TestValid()

ACTIVATE DIALOG oDlg CENTERED

RETURN NIL

FUNCTION TestValid()

MSGINFO('PASSOU')

RETURN .T.

[]´s

Flavio

FWH28 + VERCE 4.3 + XHARBOUR 99.61 + WORKSHOP

FWH28 + XBUILD + XHARBOUR (ENTERPRISE)

Link to comment
Share on other sites

Olá,

Isso já foi amplamente discutido icon_smile_big.gif, como disse o Kapi, coloque outro get ou um botão fora da dialog, só para q ele possa mudar de foco, senão não dá para validar icon_smile_big.gif

Vagner Wirts

Clipper 5.2 Lib 5.3 - Blinker 5.0 FW 2.0, Harbour 43.0 (Flex), xHarbour 99.1 99.2 99.3 (Simplex) FW 2.5 icon_smile_big.gif

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