Skip to main content

Net Express 5.1 - Folder Browser Dialog

  • September 13, 2012
  • 3 replies
  • 0 views

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.

3 replies

Chris Glazier
Forum|alt.badge.img+2
  • Moderator
  • 3697 replies
  • September 13, 2012

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.


Chris Glazier
Forum|alt.badge.img+2
  • Moderator
  • 3697 replies
  • September 13, 2012

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."


  • Author
  • Rocketeer
  • 19312 replies
  • September 14, 2012

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.