首页 > comp > gb.form.dialog > dialog > selectdirectory 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  刷新  搜索  管理  
THIS WIKI IS DEPRECATED AND IS READ-ONLY. THE NEW WIKI IS THERE.
文档
历史
 
Dialog.SelectDirectory (gb.form.dialog)
Static Function SelectDirectory ( ) As Boolean

Calls the file standard dialog to get an existing directory name.

Returns TRUE if the user clicked on the Cancel button, and FALSE if the user clicked on the OK button.

This example list all files in a directory selected by the user. If the user cancels the dialog then the list is not displayed.

示例

PUBLIC SUB ButtonDirectory_Click()
  DIM fileName AS String
  IF Dialog.SelectDirectory() THEN RETURN
  FOR EACH fileName IN Dir(Dialog.Path)
    PRINT Dialog.Path &/ fileName
  NEXT
END