Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | disk.dialogBox.folder SEARCH    

  Functions
disk.dialogBox.folder
disk.dialogBox.open
disk.dialogBox.save
disk.dialogBox.save.getFilter
disk.drive.freeSpace
disk.drive.label
disk.drive.list
disk.drive.sysName
disk.drive.totalSpace
disk.drive.type
disk.file.compress
disk.file.copy
disk.file.date.get
disk.file.date.set
disk.file.delete
disk.file.exists
disk.file.expand
disk.file.list
disk.file.load
disk.file.load.array
disk.file.load.array.append
disk.file.load.decode
disk.file.merge
disk.file.move
disk.file.save
disk.file.save.array
disk.file.save.array.encode
disk.file.save.encode
disk.file.size
disk.folder.create
disk.folder.delete
disk.folder.exists
disk.folder.list
disk.folder.remove
disk.folder.setAsSystem
disk.folder.tree

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
disk.dialogBox.folder

Language: MioScript
Product: MioFactory


Syntax

disk.dialogBox.folder(parent, infoText, newStyle, defaultFolder, showFiles, showEditBox)


Parameters

WindowIDparentParent window ID, or null. Specify a window ID if your application stays on top, so the dialog box is not overlaped by the window.
STRINGinfoTextString that is displayed above the tree view control in the dialog box. This string can be used to specify instructions to the user.
BOOLnewStyleOptional.
Default is false.
Set to true to use the latest Windows API (recommanded).
STRINGdefaultFolderOptional.
Specify the folder to be opened when the dialog box is prompted.
BOOLshowFilesOptional.
Default is false.
Set to true to show the files and folders, false to show folders only.
BOOLshowEditBoxOptional.
Default is false.
Set to true to show the edit box.


Return value

File or folder selected by the user, or an empty string if the user clicks on Cancel.



Description

Shows the standard Windows dialog box with a treeview to select a folder or file.

You should disable the windows of your application while the dialog box is visible with window.ID.enabled.




MioScript Sample Code

&path = disk.dialogBox.folder(main, "Select a folder", true, path.desktop())
alert(&path)