Lotusscript is equipped with the OpenFileDialog method, which will return the name of a file, but I need to select a directory. I want to get a FolderBrowserDialog from a form in the notes client. FolderBrowserDialog is a .net function. How do I call it? Using the tip documented herehttp://www-01.ibm.com/support/docview.wss?uid=swg21230705
I wrote the code
Dim listOfFolders As Variant
Set listOfFolders = CreateObject(“FolderBrowserDialog”)
but I get an error “Cannot create automation object.” So Notes doesn’t know how to instantiate an object using that class. What step am I missing? How do I tell notes where it is?
thanks, that fixed my problem. I’m still interested in the answer to my .net question, though, if anyone knows. I’d think I should be able to call on that FolderBrowserDialog.
that’s what I was wondering. I was thinking there’s a way to call it directly without having to write a wrapper like in the example. The function I’m looking for is in System.Windows.Forms.dll, and that dll is registered, so I figured I could just use it. if the answer is that I have to write my own dll, that’s fine; I’d just like to confirm that.
The .Net runtime drops down to the Windows Shell API call SHBrowseForFolder, which you can call directly from LotusScript. No need to write a wrapper DLL.