BrowseFolder

Started by Fred Tomke, June 20, 2008, 07:03:35 AM

Previous topic - Next topic

Fred Tomke

Hello,

this works very well.
(dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "C:\\" "C:\\" 81)

But I want to see other drives, too. Then I would use
(dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "C:\\" 81)
But unfortunately, I get an exception. What am I doing wrong?

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

Currently, if you pass the first string argument, you must pass the second string argument as well. I will change this to accept only a single string argument.

Fred Tomke

Hello Owen,

the second string is useful if the user only shall select a folder below the preselected folder. Other drives and folders are not allowed. We had an OpenDCL training today and the "student" liked this very much. But we also tried to get the "Create new folder" button. But we didn't get this when leaving out the second string.

I hope it was understandable  :)

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

Sorry, I'm not sure I understand.  Are you saying that passing an empty string is not the same as omitting the argument?

Fred Tomke

Yes, you're right that's different. I'll give you an example:

Case 1:
(dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "D:\\bündig")

Case 2:
(dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "D:\\bündig" "D:\\")

The second string allows only to select a folder only under "D:\\".

Interesting, isn't it?  :) It would be nice to keep it.

So my initial question was: what do I have to do to have the Create new folder button when I DON'T want to limit the folder selection.

work: (dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "D:\\bündig" "D:\\" 81)
doesn't work: (dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "D:\\bündig" 81)

How can I find the place in the code where this function is defined?
How can I debug that?

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

Have you tried (dcl_browsefolder "Wählen Sie das Projektverzeichnis: " "D:\\bündig" nil 81)?

Fred Tomke

Thank you. Thats it! We should add this to the documentation.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]