%HI_FileDialog function


Function
The function displays standard dialog box allowing to select or saving file.
Declaration
TEXT %HI_FileDialog(
   BOOL in bOpen, 
   TEXT in strInitFileName, 
   TEXT in strTitle, 
   TEXT in strStartPath, 
   TEXT in strExtension
 ) 
Parameters
bOpen@True - the dialog box is used for opening a file.
@False - the dialog is used for saving file.
strInitFileNameInitial file name (or mask).
strTitleDialog box title.
strStartPathStarting directory.
strExtensionExtension.
Description
Return value is the full path and name of selected file.
Example
Call in ESL:
 
TEXT _fName
 _fName := %HI_FileDialog(@TRUE, "*.xml", "Open XML File", "c:\windows", "XML Document")
  IF  _fName\VLD THEN
  IF  _fName # "" THEN  
    ; user selected the file _fName  
  ENDIF
Napíšte komentár