home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
techs.zip
/
TECH6.ARC
/
CMDJOIN.PRG
next >
Wrap
Text File
|
1985-11-01
|
621b
|
30 lines
* Program...: Cmdjoin.PRG
* Author... : Luis Castro
* Date .....: December 1, 1985
* Version...: dBASE II, any version
* Note(s)...: This program performs a simple JOIN that is very
* similar to the dBASE II JOIN command.
*
SET TALK OFF
USE Joinfile
APPEND FROM File1
GO TOP
SELECT SECONDARY
USE File2 INDEX File2
SELECT PRIMARY
DO WHILE .NOT. EOF
STORE key TO mkey
SELECT SECONDARY
FIND &mkey
IF # <> 0
SELECT PRIMARY
REPLACE Field1 WITH S.Field1
REPLACE Field2 WITH S.Field2
ENDIF
SELECT PRIMARY
SKIP
ENDDO
CLEAR
RETURN
* EOP Cmdjoin.PRG