sTitle | (String) Title of the input window. |
---|---|
nStyle | (Long) Bit flags defining window type and content.
Hexadecimal numbers can be entered by adding a prefix: for JavaScript it is 0x and for VBScript it is &H. For example, 0x10 or &H10 in hexadecimal represents 16 in decimal. It is possible to enter the following styles or their combinations as a sum: &H100 - Cannot go through the subfolders.
&H200 - Cannot go through the parent-folders.
&H300 - Cannot change the folder.
&H400 - Selected file must exist.
&H1000 - Selected file mustn't exist.
&H800 - Confirmation is requested.
&H2000 - Folders are not displayed.
&H4000 - Only folders are displayed.
&H10000000 - Window will be "Always on top".
&H8000 - The window can be closed only by selection the file. It means that if the folder (marked in blue) is selected, then the window cannot be closed by the "OK" button. |
sFilePath | (String) It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders.
Before calling: The full path to the file or folder (for the window initialization).
After calling: The selected file or folder. |
sExt | (String) Default extension of the selected file. |
sFilter | (String) Text string allows the filtering of the file content. Examples:
- display of all files: sFilter="All files (*.*)|*.*||"
- display files with the extension '.TXT': sFilter="TXT files (*.TXT)|*.TXT||"
- display files with the extension '.TXT' and '.INI': sFilter="TXT files (*.TXT)|*.TXT|INI files (*.INI)|*.INI||" |
Dim sFile, sFilter
sFile = "#appres:triangle.jpg"
sFilter = "Images (*.jpg)|*.jpg|All files (*.*)|*.*||"
If Pm.InputBoxForFilePath("Select image", &H200, sFile, "jpg", sFilter) Then
Pm.Debug "File=" & sFile
End If