home *** CD-ROM | disk | FTP | other *** search
- /* $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
-