home *** CD-ROM | disk | FTP | other *** search
- /*
- * clipclean - cleans up all the clips it was told about by mgclip. This
- * should be run via rexx-do-on-exit, when mg exits.
- *
- * To have it clean up a clip, just call mgclip with the name of the clip
- * as a the argument. Clip names that aren't "words" by the definitions
- * of Rexx won't get cleaned properly.
- */
-
- clipname = "mg.cleanclips."
-
- options failat 2
- 'rexx-unlock' /* Free the mg - we can't complain anyway... */
-
- cliplist = getclip(clipname)
-
- call setclip clipname
-
- do i = 1 to words(cliplist)
- call setclip word(cliplist, i)
- end
- exit
-