Jump to content
Fivewin Brasil

Amigos me ajudem


Papy Cop

Recommended Posts

Criei uma funcaozinha para testar a respeito do DO/ENDDO sem fim, finalizando ao precionar uma tecla e passei para alguns amigos que estao me ajudando.

Com os dois deu certo.

Mas comigo Naum.

Oque poderia ser???

A funcao de teste que pacei foi a seguinte.

FUNCTION DOENDDOSEMFIM()

zNumero = 0

lFui = .F.

DO WHILE !lFui //.t.

zNumero = zNumero + 1

IF lastkey()=27

lFui = .t. //EXIT

ENDIF

inkey(0.1)

ENDDO

? "Volta"+ TRANSFORM(zNumero,"99999")

? "SAIR DO LOOP!!!"

RETURN(NIL)

Obrigado amigos!!!

Brown

Macae - RJ

Link to comment
Share on other sites

// Cortesia Especial Para My Friend Mano Brown - Macaé - Rio de Janeiro.

// 31/07/2004 - By João Santos - Em São Paulo - Brazil.

//

// Email: karinhannah@ubbi.com.br

// Web..: http://www.gruporibas.com.br/kmt

#Include "FiveWin.Ch" // Forever, Forever, Forever!

STATIC LSaidaExit := .F. // Estilo Professional Edition

FUNCTION BROWN_MACAE_RJ() // While Eterno com ESCAPE...

LOCAL nNumero // Variável Para Números.

nNumero := 0.00

WHILE !LSaidaExit // Enquanto lSaidaExit Nao For True = .T. Nao Saira!

IF( GetKeyState( VK_ESCAPE ) ) // Se Usuario Teclar 27 Saira!

LSaidaExit := .T.

MsgInfo( "Vou Sair Mano Brown... Tchau Bambino!", ;

"Adeus, Amigo FiveWinner!" )

ELSE

MsgInfo( "Mostra Número" + ;

TRANSFORM( nNumero, "9,999,999.99" ) ) // O Seu Show()

ENDIF

nNumero++ // Soma Mais 1... Ok??

SysRefresh() // Refresque a Placa do Micro... Senão... Pimba! hehehe!

ENDDO

RETURN NIL

// NAO PERCAM O SEGUNDO ENCONTRO DE FIVEWINNERS EM NOVEMBRO/2004-BREVE!

João Santos

São Paulo-Brasil

(11) 3106-2832 a Noite

karinhannah@ubbi.com.br

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