Jump to content
Fivewin Brasil

btnget e pesquisa


Alain da Silva

Recommended Posts

boa noite, estou atualizando o five e esta dando alguns erros:

1) como é feito o btnget, me parece que foi incorporado ao five

2) erro no bpostkey.. Como é feita a pesquisa agora

REDEFINE BTNGET OGNC VAR CNOM ID 2 PICTURE "@!" OF DLGVEN RESOURCE "pesquisa" action ""
oGNC:bPostKey :={|| PESQUIVEN(oGNC,2) }
OGNC:bGotfocus:={||(NORDEM:=3,ORDBUTT:REFRESH(),ARQNFE->(DBSETORDER(2)),ARQNFE->(OrdDescend(,,.F.)),ARQNFE->(DBGOTOP()),OBRWVEN:REFRESH()) }

fwhx 14.12 >> xharbour 1.2.3 intl. (simplex) (build 20141106)

obrigado

Link to comment
Share on other sites

Usando Recursos é assim:



REDEFINE GET aGetVenda[1] VAR nNumeroTel PICTURE "@K!" ID 20 OF oDlgVendas;
COLOR nRGB( 000, 000, 000 ), nRGB( 243, 250, 200 ) ;
WHEN( lLigaCliente ) ;
CURSOR oHand FONT oFnt UPDATE BITMAP "BUSCAR" ;
VALID ( PESQUISA_TELEFONE( nNumeroTel, aGetVenda, oLbx, ;
DbClientes, DbEstoque, DbPedidos, DbFornece ) ) ;
ACTION( PESQUISA_TELEFONE( nNumeroTel := [00000000000000000], ;
aGetVenda, oLbx, DbClientes, DbEstoque, DbPedidos, DbFornece ) )

aGetVenda[1]:bKeyDown := { |nKey| IF( nKey == VK_F7, Eval( aGetVenda[1]:bAction ), Nil ) }

aGetVenda[1]:cToolTip := OemToAnsi( "Click no BotÆo ao Lado, " + ;
"Para Visualizar o Banco " + "de Dados dos Clientes " + ;
"Veja os Nomes/Telefones " + "<F7>-Visualizar. " + ;
"Se o Telefone NÆo For " + "Localizado, Dispara " + ;
"Para o Cadastro de " + "Clientes. " + ;
"Incluir, Excluir, " + "Alterar, Pesquisar." )


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