joetrogdon
Technical User
OK this is probably so basic it's laughable but here goes:
I have 2 databases that are indexed and have 1 field that is the same (orderno). I am trying to compare the field orderno in the databases and extract all the fields where the orderno values match. The SEEK function is giving me fits so I thought I would ask here. My code is as follows, no laughing please...
USE e:\ceonline\testdata\shipdata.dbf in 2
USE e:\ceonline\testdata\ordmastr.dbf in 1
select 1
set order to 1
torderno = orderno
SEEK(torderno[ ,2])
IF FOUND( )
DISPLAY FIELDS orderno
ENDIF
The help system in Foxpro showed the SEEK function syntax as it's written above, but it gives me an error "Missing )". If I understand correctly the SEEK function will look in another work area if it's specified, which is where the 2 comes from in the [ ].
Anyway, if anything I've said is unclear post a question and I'll try to word it better. Thanks in advance.
I have 2 databases that are indexed and have 1 field that is the same (orderno). I am trying to compare the field orderno in the databases and extract all the fields where the orderno values match. The SEEK function is giving me fits so I thought I would ask here. My code is as follows, no laughing please...
USE e:\ceonline\testdata\shipdata.dbf in 2
USE e:\ceonline\testdata\ordmastr.dbf in 1
select 1
set order to 1
torderno = orderno
SEEK(torderno[ ,2])
IF FOUND( )
DISPLAY FIELDS orderno
ENDIF
The help system in Foxpro showed the SEEK function syntax as it's written above, but it gives me an error "Missing )". If I understand correctly the SEEK function will look in another work area if it's specified, which is where the 2 comes from in the [ ].
Anyway, if anything I've said is unclear post a question and I'll try to word it better. Thanks in advance.