home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
install
/
reqtools
/
rexxreqtools
/
examples
/
ttxarexx.lha
/
OpenMacro.ttx
< prev
next >
Wrap
Text File
|
1993-10-21
|
632b
|
30 lines
/* $VER: OpenMacro.ttx 1.0 (19.02.93) */
OPTIONS RESULTS
LastMacro = GetClip( 'TTX_LastMacro' )
IF LastMacro = "" THEN LastMacro = "REXX:"
DirName = ""
Index = LastPos( '/', LastMacro )
IF Index ~= 0 THEN DO
DirName = Left( LastMacro, Index )
END
ELSE DO
Index = Index( LastMacro, ":" )
IF Index ~= 0 THEN DO
DirName = Left( LastMacro, Index )
END
END
FileName = rtFileRequest( DirName, , "Select file to open as macro", "_Open", "RTFI_Flags=FREQF_PatGad RTFI_MatchPat=#?.ttx RT_PubScrName=TURBOTEXT" )
IF rtResult = 1 THEN DO
OpenClip FileName
SetClip( 'TTX_LastMacro', FileName )
END
CALL rtFreeFileBuffer