browseForServerFolder

browseForServerFolder(description: String;
                      startFolder: String): String;

The browseForServerFolder method of the FileFolder class displays a file dialog and returns the folder from the specified database server node. The value specified in the description parameter is displayed in the dialog. The search for the folder starts in the folder (directory) specified in the startFolder parameter.

The following example shows the use of the browseForServerFolder method.

vars
    fileFolder : FileFolder;
    dir        : String;
begin
    create fileFolder;
    dir := fileFolder.browseForServerFolder("Select Backup Directory", "");
    if dir <> null then
        backDir.text := dir;
    endif;
epilog
    delete fileFolder;
end;

See also the FileFolder class browseForFolder method, which enables you to browse for and return a folder from your local (client) node.