gibaf Posted February 18, 2023 Report Share Posted February 18, 2023 ola a todos ! qual o recurso, equivalente ao dbFilter() para um filtro feito pela funcao SR_SetFilter (sqlrdd - xHarbour) ? ate tentei o dbFilter(), mas nao faz, somente em .dbf desde ja agradeco ! Quote Link to comment Share on other sites More sharing options...
kapiaba Posted February 18, 2023 Report Share Posted February 18, 2023 Faça uma busca no PCTOLEDO, tem bastante info lá: http://www.pctoledo.com.br/forum/viewtopic.php?f=57&t=25523&p=149304&hilit=SR_SetFilter#p149304 Regards, saludos. Quote Link to comment Share on other sites More sharing options...
Jmsilva Posted February 18, 2023 Report Share Posted February 18, 2023 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. Quote Link to comment Share on other sites More sharing options...
emotta Posted February 20, 2023 Report Share Posted February 20, 2023 É só chamar SR_SETFILTER sem passar nenhum parâmetro. Exemplo: // para filtrar CLIENTES->(Sr_SetFilter("CODIGO > 1000")) // para saber o filtro cFiltro := CLIENTES->(Sr_SetFilter()) MsgStop(cFiltro) // vai exibir: CODIGO > 1000 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.