Skip to main content

Hi,

Using the command DSDIR (in the NX Dialog) I can find and return to the program a filename from my PC, which works great.

However is there a command that works like the Visual Cobol Toolbox option "FolderBrowserDialog" this can locate and return a Directory name?

Many thanks

Neil.

Hi,

Using the command DSDIR (in the NX Dialog) I can find and return to the program a filename from my PC, which works great.

However is there a command that works like the Visual Cobol Toolbox option "FolderBrowserDialog" this can locate and return a Directory name?

Many thanks

Neil.

There is no built-in control or DS extension in Dialog System that behaves like the FolderBrowserDialog control in .NET.

You would have to use an ActiveX version of this control if you wanted to add one to a Dialog System Screenset.

I did a quick google search and I found a few ActiveX versions of this control available as freeware.

Thanks.


Hi,

Using the command DSDIR (in the NX Dialog) I can find and return to the program a filename from my PC, which works great.

However is there a command that works like the Visual Cobol Toolbox option "FolderBrowserDialog" this can locate and return a Directory name?

Many thanks

Neil.

Actually, there is a sample of how to do this using SHBrowseForFolder on the Supportline Web site (thanks Yvon!)

here:

Look at getdirectory.zip

"This program demonstrates the use of Win32 API calls SHBrowseForFolder and SHGetPathFromIDList to display a dialog box that will allow the user to select a directory."


Hi,

Using the command DSDIR (in the NX Dialog) I can find and return to the program a filename from my PC, which works great.

However is there a command that works like the Visual Cobol Toolbox option "FolderBrowserDialog" this can locate and return a Directory name?

Many thanks

Neil.

That works, thanks very much Neil.