home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
install
/
reqtools
/
rexxreqtools
/
examples
/
ttxarexx.lha
/
OpenDoc.ttx
< prev
next >
Wrap
Text File
|
1993-10-21
|
525b
|
25 lines
/* $VER: OpenDoc.ttx 1.0 (20.02.93) */
OPTIONS RESULTS
GetFilePath
DirName = RESULT
OpenDoc
NewPort = RESULT
ADDRESS VALUE NewPort
Index = LastPos( '/', DirName )
IF Index ~= 0 THEN DirName = Left( DirName, Index - 1 )
ELSE DO
Index = Index( DirName, ":" )
IF Index ~= 0 THEN DirName = Left( DirName, Index )
ELSE DirName = ""
END
FileName = rtFileRequest( DirName,, "Select file to open", "_Open", "RT_PubScrName=TURBOTEXT RTFI_Flags=FREQF_PatGad" )
IF rtResult = 1 THEN OpenFile FileName
CALL rtFreeFileBuffer