FoxPro/Visual FoxPro - Ayuda con la fonción SEEK

 
Vista:

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
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

RE:Ayuda con la fonción SEEK

Publicado por Ernesto Hernandez (4623 intervenciones) el 04/01/2007 00:51:42
Prueba asi


USE DPASS INDEX NOMLIST <<== aqui puedes usar un indice compuesto
INDEX ON DPASS ORDER NOMLIST TAG NOMLIST <<== asi lo creas
USE DPASS ORDER 1 <<== asi quedaria

NOMM1=Thisform.Text1.Value
nomm=ALLTRIM(NOMM1)

=SEEK (NOMM,"DPASS",1)

IF FOUND( )
SELECT NOMBRE FROM DPASS WHERE nombre = NOMM INTO CURSOR mIcURSOR
thisform.Combo1.RowSourceType= 3
thisform.list1.RowSource='micursor"'

ENDIF


Suerte
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar