home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
install
/
reqtools
/
rexxreqtools
/
examples
/
ttxarexx.lha
/
SaveMacroAs.ttx
< prev
next >
Wrap
Text File
|
1993-10-21
|
565b
|
27 lines
/* $VER: SaveMacroAs.ttx 1.0 (20.02.93) */
OPTIONS RESULTS
LastMacro = GetClip( 'TTX_LastMacro' )
IF LastMacro = "" THEN LastMacro = "Rexx:"
DirName = ""
Index = LastPos( '/', LastMacro )
IF Index = 0 THEN Index = Index( LastMacro, ":" )
IF Index ~= 0 THEN DO
DirName = Left( LastMacro, Index )
END
FileName = rtFileRequest( DirName, "", "Select file to save as macro", "_Save", "RTFI_Flags=FREQF_PatGad|FREQF_Save RT_PubScrName=TURBOTEXT" )
IF rtResult = 1 THEN DO
SetClip( 'TTX_LastMacro', FileName )
SaveMacro FileName
END
CALL rtFreeFileRequest