home *** CD-ROM | disk | FTP | other *** search
- loadsub(control\macros\ltagged.ctl)
-
- say(&3&Please enter the name of the file to remove&12&: &14&( )&15&*)
- back(13)
- menuask%nocr%%CRON%%LEN%12%(*)
- if (%RESP%)=(<CR>) then goto (rn)
- adddef (.%DEFEXT%)
-
- setequal(a=%Resp%)
-
- jump (DoCopy)
-
- setequal(b=0)
- setequal(c=0)
-
- inpopen(t1.%node%)
-
- do
- inc(c)
- inpread
- if (%ARESP%)=(%VAR%A) then setequal(b=%VAR%C)
- notif (%ARESP%)=(%VAR%A) then appendto(tagged.%node%,%ARESP%)
- eofloop
-
- inpclose
-
- if (%VAR%B)=(0) then goto NoFRet
-
- inpopen (t2.%node%)
-
- setequal(c=0)
-
- do
- inc(c)
- inpread
- notif (%VAR%C)=(%VAR%B) then appendto (tagged2.%node%,%ARESP%)
- eofloop
- inpclose
-
- inpopen (f1.%node%)
-
- setequal(c=0)
-
- do
- inc(c)
- inpread
- notif (%VAR%C)=(%VAR%B) then appendto (free.%node%,%ARESP%)
- eofloop
- inpclose
-
- say(&CR&&11&%VAR%A &2&has been removed from the list.&CR&)
- enter
- *rn
- say()
- return
-
- *NoFRet
- fcopy (t2.%node%,tagged2.%node%)
- fcopy (f1.%node%,free.%node%)
- say (&CR&&12&File not found in tagged file list.&CR&)
- enter
- return
-
- *DoCopy
- fcopy(tagged.%node%,t1.%node%)
- fcopy(tagged2.%node%,t2.%node%)
- fcopy(free.%node%,f1.%node%)
- zap(tagged.%node%)
- zap(tagged2.%node%)
- zap(free.%node%)
- say()
- ret
-