home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
install
/
reqtools
/
rexxreqtools
/
examples
/
ttxarexx.lha
/
SaveFileAs.ttx
< prev
next >
Wrap
Text File
|
1993-10-21
|
513b
|
25 lines
/* 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