warning W0027 Meaningless use of expression 'Logical'

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20436
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP
Curtiram: 1 vez

warning W0027 Meaningless use of expression 'Logical'

Mensagem por JoséQuintas »

ze_fwtextmsg.prg:93: warning W0027 Meaningless use of expression 'Logical'
Não entendi o porque desse erro.
Que eu me lembre, é quando a expressão não é lógica.
Acrescentei o teste de threadID.

Código: Selecionar todos

   ::oDlg:bValid := { || ;
      iif( GetKeyState( VK_ESCAPE ), ::lHitEsc := .T., Nil ), ;
      iif( GetKeyState( VK_ESCAPE ), ::ShowText( "ESC pressionado" ), Nil ), ;
      iif( ! Empty( ::nThreadID ) .AND. hb_ThreadWait( ::nThreadId, 0.1, .T. ) == 1, .T., Nil ), ;
      ::lCanClose }
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20436
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP
Curtiram: 1 vez

Re: warning W0027 Meaningless use of expression 'Logical'

Mensagem por JoséQuintas »

Erro meu.
O .T. tentaria ser executado como se fosse um comando.
O retorno é o último, ::lCanClose

Código: Selecionar todos

   ::oDlg:bValid := { || ;
      iif( GetKeyState( VK_ESCAPE ), ::lHitEsc := .T., Nil ), ;
      iif( GetKeyState( VK_ESCAPE ), ::ShowText( "ESC pressionado" ), Nil ), ;
      iif( ! Empty( ::nThreadID ) .AND. hb_ThreadWait( ::nThreadId, 0.1, .T. ) == 1, ::lCanClose := .T., Nil ), ;
      ::lCanClose }
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Responder