problema al buscar con filtro en una dw
tengo el problema en sle_ingreso, cuando voy ingresando letras a buscar me va buscando , el problema cuando vuelvo a buscar otro dato y elimino en sle_ingreso con tecla retroceso, se produce un loop que se demora para ir al inicio de la dw_mostras_dato, e aqui te mando el codigo q utilizo
este codigo lo coloco en el evento key_pressed = pbm_keyup
if len(sle_ingreso.text)=0 then
dw_1.setfilter("")
dw_1.filter()
end if
integer reg
string busca
if rb_producto.checked=true then busca="upper(nombre_producto) like '" + upper(sle_ingreso.text) + "%'"
if rb_grupos.checked=true then busca="upper(nombre_grupo1) like '" + upper(sle_ingreso.text)+ "%'"
if rb_subgrupos.checked=true then busca="upper(nombre_subgrupo1) like '" + (sle_ingreso.text) + "%'"
reg=dw_1.find(busca,1,dw_1.rowcount())
if reg=0 then
messagebox("Verifique","Registro No Existe")
sle_ingreso.text=""
else
if rb_producto.checked=true then
dw_1.setfilter(busca)
dw_1.filter()
dw_1.enabled=true
//integer cant
//cant=dw_1.rowcount()
//st_2.text= "Son"+" " + string(cant)+" " + "Cliente"+" "+ "(s)"
end if
if rb_grupos.checked=true then
dw_1.setfilter(busca)
dw_1.filter()
dw_1.enabled=true
//integer cant
//cant=dw_1.rowcount()
//st_2.text= "Son"+" " + string(cant)+" " + "Cliente"+" "+ "(s)"
end if
if rb_subgrupos.checked=true then
dw_1.setfilter(busca)
dw_1.filter()
dw_1.enabled=true
//integer cant
//cant=dw_1.rowcount()
//st_2.text= "Son"+" " + string(cant)+" " + "Cliente"+" "+ "(s)"
end if
end if