home *** CD-ROM | disk | FTP | other *** search
- /* SaveFileAs.ttx 1.1 (27.07.93) */
-
- OPTIONS RESULTS
-
- GetFilePath
- DirName = RESULT
- Index = LastPos( '/', DirName )
-
- IF Index = 0 THEN
- Index = Index( DirName, ":" )
-
- IF Index ~= 0 THEN DO
- FileName = SubStr( DirName, Index + 1 )
- DirName = Left( DirName, Index )
- END
-
- FileName = rtFileRequest( DirName, FileName, "Select file to save", "_Save", "RTFI_Flags=FREQF_PatGad|FREQF_Save RT_PubScrName=TURBOTEXT" )
-
- IF rtResult = 1 THEN DO
- SaveFileAs NAME FileName
- SetFilePath FileName
- END
-
- CALL rtFreeFileBuffer
-