home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
educ
/
retrv_pc.zip
/
AUTONUMB.PRG
< prev
next >
Wrap
Text File
|
1984-10-24
|
5KB
|
160 lines
NOTE - EXTENDED COMMAND FILE AUTONUMB.CMD
ERASE
USE &FILE1
DO WHILE T
STORE 'Y' TO CONTINUE
STORE ' ' TO REF
STORE ' ' TO AU1
STORE ' ' TO AU2
STORE ' ' TO TI1
STORE ' ' TO TI2
STORE ' ' TO TI3
STORE ' ' TO TI4
STORE ' ' TO SO1
STORE ' ' TO SO2
STORE ' ' TO KW1
STORE ' ' TO KW2
ERASE
@ 3,25 SAY 'REPRINT INFORMATION ENTRY FORM'
@ 7,15 SAY 'AUTHORS ' GET AU1 PICTURE;
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 8,22 SAY ' ' GET AU2 PICTURE 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 10,17 SAY 'TITLE ' GET TI1 PICTURE;
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 11,22 SAY ' ' GET TI2 PICTURE 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 12,22 SAY ' ' GET TI3 PICTURE 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 13,22 SAY ' ' GET TI4 PICTURE 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 15,16 SAY 'SOURCE ' GET SO1 PICTURE;
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 16,22 SAY ' ' GET SO2 PICTURE 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 18,13 SAY 'KEY WORDS ' GET KW1 PICTURE;
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@ 19,22 SAY ' ' GET KW2 PICTURE 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
READ
STORE $(AU1,1,1) TO SEARCH
IF SEARCH="Z"
GO BOTTOM
STORE VAL($(REF:NO,3,3)) TO NUMBER
STORE NUMBER+1 TO NUMBER
APPEND BLANK
STORE SEARCH+STR(NUMBER,4) TO REF
@ 21,14 SAY 'REF. NO. :'+REF+':'
STORE AU1+AU2 TO AU3
STORE TI1+TI2+TI3+TI4 TO TI5
STORE SO1+SO2 TO SO3
STORE KW1+KW2 TO KW3
REPLACE REF:NO WITH REF
REPLACE AUTHORS WITH AU3
REPLACE TITLE WITH TI5
REPLACE SOURCE WITH SO3
REPLACE KWORDS WITH KW3
ELSE
IF SEARCH="A"
STORE 65 TO NUMB
ENDIF
IF SEARCH="B"
STORE 66 TO NUMB
ENDIF
IF SEARCH="C"
STORE 67 TO NUMB
ENDIF
IF SEARCH="D"
STORE 68 TO NUMB
ENDIF
IF SEARCH="E"
STORE 69 TO NUMB
ENDIF
IF SEARCH="F"
STORE 70 TO NUMB
ENDIF
IF SEARCH="G"
STORE 71 TO NUMB
ENDIF
IF SEARCH="H"
STORE 72 TO NUMB
ENDIF
IF SEARCH="I"
STORE 73 TO NUMB
ENDIF
IF SEARCH="J"
STORE 74 TO NUMB
ENDIF
IF SEARCH="K"
STORE 75 TO NUMB
ENDIF
IF SEARCH="L"
STORE 76 TO NUMB
ENDIF
IF SEARCH="M"
STORE 77 TO NUMB
ENDIF
IF SEARCH="N"
STORE 78 TO NUMB
ENDIF
IF SEARCH="O"
STORE 79 TO NUMB
ENDIF
IF SEARCH="P"
STORE 80 TO NUMB
ENDIF
IF SEARCH="Q"
STORE 81 TO NUMB
ENDIF
IF SEARCH="R"
STORE 82 TO NUMB
ENDIF
IF SEARCH="S"
STORE 83 TO NUMB
ENDIF
IF SEARCH="T"
STORE 84 TO NUMB
ENDIF
IF SEARCH="U"
STORE 85 TO NUMB
ENDIF
IF SEARCH="V"
STORE 86 TO NUMB
ENDIF
IF SEARCH="W"
STORE 87 TO NUMB
ENDIF
IF SEARCH="X"
STORE 88 TO NUMB
ENDIF
IF SEARCH="Y"
STORE 88 TO NUMB
ENDIF
STORE NUMB+1 TO NUMB
STORE CHR(NUMB) TO alpha
FIND &alpha
SKIP -1
STORE VAL($(REF:NO,3,3)) TO NUMBER
STORE NUMBER+1 TO NUMBER
GO BOTTOM
APPEND BLANK
STORE SEARCH+STR(NUMBER,4) TO REF
@ 21,14 SAY 'REF. NO. :'+REF+':'
STORE AU1+AU2 TO AU3
STORE TI1+TI2+TI3+TI4 TO TI5
STORE SO1+SO2 TO SO3
STORE KW1+KW2 TO KW3
REPLACE REF:NO WITH REF
REPLACE AUTHORS WITH AU3
REPLACE TITLE WITH TI5
REPLACE SOURCE WITH SO3
REPLACE KWORDS WITH KW3
ENDIF
STORE 5 TO L
DO WHILE L<21
@ L,13 SAY ' '
STORE L+1 TO L
ENDDO
@ 10,26 SAY 'WANT TO CONTINUE? (Y/N) ' GET CONTINUE PICTURE 'A'
READ
IF !(CONTINUE)='N'
RELEASE CONTINUE,REF,AU1,AU2,AU3,TI1,TI2,TI3,TI4,TI5,;
SO1,SO2,SO3,KW1,KW2,KW3
RETURN
ENDIF
ENDDO