|sTitle||(String) Title of the input window.|
|nStyle||(Long) Bit flags defining window type and content.
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 selecting 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 and folders.
on the calling: the full path to the file or folder (for the window initialization).
after the calling: the selected file or folder.
|sExt||(String) Default extension of the selected file.|
|sFilter||(String) Text string enabling 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