folderSelector()

Opens the folder selector dialog and writes the name of the selected folder to the string variable "path".

Synopsis

int folderSelector(string path);

Parameters

Parameter Description
path path of the selected folders

Return value

If OK then 1, otherwise 0

Error

Description

Opens the folder selector dialog and writes the name of a selected folder to the string variable "path". The valid content of the variable "path" is an absolute path string. The folder dialog opens with the folder "path".

Example

The following example opens the folder dialog and debugs the folder in the log viewer.

main()
{
  int x;
  string f;
  x=folderSelector(f);
  DebugN(f); // the selected folder
}

Assignment

Dialog functions

Availability

UI