home *** CD-ROM | disk | FTP | other *** search
- ; Save all modified files in the ring,
- ; Larry Margolis
-
- compile if not defined(SMALL) -- If being externally compiled...
- tryinclude 'MYCNF.E' -- Include user's configuration
- compile if not defined(NLS_LANGUAGE) -- If no language set,
- const
- NLS_LANGUAGE = 'ENGLISH' -- assume English.
- compile endif
- include NLS_LANGUAGE'.e' -- Need this to get UNNAMED_FILE_NAME
-
- defmain -- ... set up so can be implicitly executed.
- 'saveall'
- compile endif
-
- defc saveall =
- getfileid startid
- do i = 1 to FilesInRing(2) -- Prevent looping forever.
- if .modify then
- if .filename = UNNAMED_FILE_NAME then
- refresh -- Show file, because Save As dialog will be presented.
- endif
- 'save'
- endif
- nextfile
- getfileid fid
- if fid=startid then leave; endif
- enddo
-