Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Control
Key
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Dialog.SelectDirectory (gb.qt4)

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.

Examples

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