Passo a passo:
CREATE TABLE "T000_Enderecos" (
"T000_ID" NUMERIC(19,0) PRIMARY KEY ,
"T000_Endereco" VARCHAR(50) ,
"T000_Numero" INTEGER ,
"T000_Bairro" VARCHAR(50) ,
"T000_Cidade" VARCHAR(50) ,
"T000_UF" VARCHAR(2) ,
"T000_CEP" VARCHAR(8) );
Query
SELECT
T000_Enderecos.T000_ID AS T000_ID,
T000_Enderecos.T000_Endereco AS T000_Endereco,
T000_Enderecos.T000_Numero AS T000_Numero,
T000_Enderecos.T000_Bairro AS T000_Bairro,
T000_Enderecos.T000_Cidade AS T000_Cidade,
T000_Enderecos.T000_UF AS T000_UF,
T000_Enderecos.T000_CEP AS T000_CEP
FROM
T000_Enderecos
WHERE
T000_Enderecos.T000_Endereco LIKE %{pEndereco}%
Tela
O Browserlist deve ser do tipo programado
Código no campo de busca:
bTemRegistros is boolean
TableDeleteAll(TABLE_QRY_Select_Endereco_Filtrado)
ok is boolean = HExecuteQuery(QRY_Select_Endereco_Filtrado, hQueryDefault, EDT_Busca_incremental)
IF ok = True THEN
FOR EACH QRY_Select_Endereco_Filtrado
bTemRegistros = HFound(QRY_Select_Endereco_Filtrado)
IF bTemRegistros = True THEN
TableAdd(TABLE_QRY_Select_Endereco_Filtrado, QRY_Select_Endereco_Filtrado.T000_ID + TAB+...
QRY_Select_Endereco_Filtrado.T000_Endereco + TAB +...
QRY_Select_Endereco_Filtrado.T000_Numero + TAB +...
QRY_Select_Endereco_Filtrado.T000_Bairro + TAB +...
QRY_Select_Endereco_Filtrado.T000_Cidade + TAB +...
QRY_Select_Endereco_Filtrado.T000_UF + TAB +...
QRY_Select_Endereco_Filtrado.T000_CEP)
END
END
END
TableDisplay(TABLE_QRY_Select_Endereco_Filtrado,taReExecuteQuery)
TableDisplay(TABLE_QRY_Select_Endereco_Filtrado,taInit)
Resultado
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.blogspot.com.br/
Nenhum comentário:
Postar um comentário