home *** CD-ROM | disk | FTP | other *** search
- /* Save_ASCII */
-
- options results
- 'Status pathname';path=RESULT
- if path="" then do
- 'ShowMessage 1 1 " Sorry, no document name. " "" "" " OK " "" ""'
- exit
- end
- else if upper(right(path,4))~='.TXT' then path=path'.txt'
- 'Status filename'
- file=RESULT
- if upper(right(file,4))~='.TXT' then file=file'.txt'
- 'Save ASCII "'path'"'
- if RC>0 then do
- msg='Could not save file:'
- if length(file)<26 then do
- file=center(file,26,'20'x)
- msg=' Could not save file: '
- end
- else msg=center('Could not save file:',length(file),'20'x)
- 'ShowMessage 1 1 "'msg'" " " "'file'" "OK" "" ""'
- end
-