%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.
strInitFileName Initial file name (or mask).
strTitle Dialog box title.
strStartPath Starting directory.
strExtension Extension.

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

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .