Ayuda con la fonción SEEK
Publicado por Edin (14 intervenciones) el 03/01/2007 22:56:12
Hola a todos, hace dias no podia usar la función SEEK, luego creo que encontre el modo de utilizarla pero no se si lo estoy haciendo bien. Bueno despues que aprendí a usar (eso creo) la funcion y me funciono correctamente, quiero saber como anidar o agregar los datos encontrados a una MATRIZ para usarla en un CUADRO COMBINADO (COMBO) o a un CUADRO DE LISTA (listBox), el ejemplo que estoy realizando es este. Espero me ayuden.
USE DPASS INDEX NOMLIST
SET EXACT OFF
NOMM1=Thisform.Text1.Value
nomm=ALLTRIM(NOMM1)
COUNT FOR NOMBRE=NOMM TO nomCount
SEEK NOMM ORDER NOMLIST IN DPASS
IF FOUND( )
DIMENSION listadenombres(nomCount,2)
COPY TO ARRAY LISTADENOMBRES FIELDS NOMBRE FOR nombre = NOMM
thisform.list1.RowSourceType= 5
thisform.list1.RowSource='listadenombres'
thisform.list1.ControlSource=nombre
*DISPLAY FIELDS NOMBRE, JORNADA FOR NOMBRE=NOMM OFF
ENDIF
gracias desde ya
USE DPASS INDEX NOMLIST
SET EXACT OFF
NOMM1=Thisform.Text1.Value
nomm=ALLTRIM(NOMM1)
COUNT FOR NOMBRE=NOMM TO nomCount
SEEK NOMM ORDER NOMLIST IN DPASS
IF FOUND( )
DIMENSION listadenombres(nomCount,2)
COPY TO ARRAY LISTADENOMBRES FIELDS NOMBRE FOR nombre = NOMM
thisform.list1.RowSourceType= 5
thisform.list1.RowSource='listadenombres'
thisform.list1.ControlSource=nombre
*DISPLAY FIELDS NOMBRE, JORNADA FOR NOMBRE=NOMM OFF
ENDIF
gracias desde ya
Valora esta pregunta
0