home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DBASEACC.ARC
/
NAMETEST.PRG
< prev
next >
Wrap
Text File
|
1979-12-31
|
1KB
|
80 lines
*NAMETEST.CMD
* CHECKS NAMES IN THE FILE IN USE AGAINST THE SUPPLIERS
ERASE
SELECT PRIMARY
GO TOP
DO WHILE .NOT. EOF
IF *
SKIP
ELSE
STORE STR(#,5) TO Number
STORE !(NAME) TO NAME
ERASE
@ 4,25 SAY 'CHECKING NAMES'
@ 6,25 SAY 'RECORD '+NUMBER
@ 7,25 SAY NAME
? CHR(7)
STORE $(NAME,1,10) TO KEY
SELECT SECONDARY
USE SUPPLIER INDEX SUPPLIER
FIND &KEY
STORE T TO Again
STORE 'T' TO DECISION
IF # = 0
DO WHILE Again
@ 09,20 SAY ' SUPPLIER IS NOT LISTED IN THE SUPPLIERS FILE '
@ 11,20 SAY ' E to EDIT the record '
@ 13,20 SAY ' A to ADD the number to the VENDORS file. '
@ 15,20 SAY ' C to CONTINUE SCANNING FILE. '
?
WAIT TO Decision
IF !(Decision) = 'A'
APPEND
SKIP-1
REPLACE NAME WITH !(NAME),ADDRESS WITH !(ADDRESS),CITY WITH;
!(CITY)
STORE F to Again
ELSE
IF !(Decision) = 'E'
SELECT PRIMARY
EDIT &Number
REPLACE NAME WITH !(NAME)
SELECT SECONDARY
STORE F TO Again
ELSE
IF !(Decision) = 'C'
STORE F TO Again
ELSE
STORE T TO Again
ENDIF C
ENDIF E
ENDIF A
ENDDO
ENDIF 0
SELECT PRIMARY
IF !(DECISION) <> 'E'
SKIP
ENDIF
ENDIF deleted
ENDDO
RELEASE ALL
RETURN