Grid
Publicado por AnaKiehl (3 intervenciones) el 08/05/2005 05:26:31
quiero realizar una busqueda y tngo el siguiente codigo :
IF NOT EMPTY(ThisForm.Text1.value)
select articulos
set filte to ALLTRIM(ThisForm.Text1.value) $ nombre
COUNT ALL FOR ALLTRIM(ThisForm.Text1.value) $ nombre TO A
ThisForm.Text2.value=ALLTRIM(STR(A))
select articulos
GO TOP
THISFORM.REFRESH
ELSE
WAIT WIND "Ingrese datos para consultar..." nowait
ENDIF
pero cuando le doi enter me aparece el grid pero sin ningun registro , porque ? el indice que uso debe tener alguna caracteristica o opcion especial ?
IF NOT EMPTY(ThisForm.Text1.value)
select articulos
set filte to ALLTRIM(ThisForm.Text1.value) $ nombre
COUNT ALL FOR ALLTRIM(ThisForm.Text1.value) $ nombre TO A
ThisForm.Text2.value=ALLTRIM(STR(A))
select articulos
GO TOP
THISFORM.REFRESH
ELSE
WAIT WIND "Ingrese datos para consultar..." nowait
ENDIF
pero cuando le doi enter me aparece el grid pero sin ningun registro , porque ? el indice que uso debe tener alguna caracteristica o opcion especial ?
Valora esta pregunta


0