Jump to content
Fivewin Brasil

Retornar a expressao do filtro do SR_SetFilter (sqlrdd)


gibaf

Recommended Posts

Na Sqlrdd a forma correta é a seguinte: 

Vendas->(Sr_SetFilter("a.dtvenda= "+SqlString(dDtvenda)), Sr_DbRefresh(),DbGotop())

If venda->(OrdKeyCount()) = 0

   ? "Nenhum registro foi encontrado"

Endif

Alias->(xbrowse())

Internamente SqlRdd monta seguinte comando sql que vc pode conferir se ativar recurso com Sr_StartTrace()

select a.* From vendas a where a.dtvenda = '9999-99-99' order by (chave indice selecionado)

Vc ainda pode usar o dbsetfilter() para manipular os dados da requisição acima.

 

 

 

 

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