home *** CD-ROM | disk | FTP | other *** search
- {===================================================================
-
- OPEN
-
- ===================================================================}
- procedure hdOpen ;
- var
- D : PFileDialog ;
- FileSpec : FNameStr ;
- begin
- FileSpec := '*.TXT' ;
- New ( D , Init ( FileSpec , { FileSpec }
- 'Open file', { Dialog title }
- '~N~ame' , { InputLine label }
- fdOpenButton , { Buttons }
- 100 ) ) ; { History list }
- if ExecDialog ( D , @FileSpec ) = cmCancel then EXIT ; { GENERAL }
- OpenEditor ( FileSpec , TRUE ) ; { GENERAL }
- end ;
-