View: request-file
[1/4] from: fantam:mailandnews at: 17-Jan-2001 12:02
Hello all,
In Rebol/View, 'request-file is nice, but it doesn't let you pick a directory.
And that's exactly what I need. I wondered if anyone had written code for
something like that.
Thanks, fantam
[2/4] from: gjones05:mail:orion at: 17-Jan-2001 11:36
> In Rebol/View, 'request-file is nice, but it doesn't let you pick a
directory.
> And that's exactly what I need. I wondered if anyone had written code for
> something like that.
If I understand your request correctly, the functionality is "built-in" (at
least in the Windows version). For example, from the command prompt in
Rebol/View, if you type "request-file," the dialog should pop-up. Single
clicking from the "Dirs:" list should select that directory. Clicking the
Parent
button allows one to traverse up the directory tree. Hope that
this is helpful.
[3/4] from: fantam:mailandnews at: 18-Jan-2001 6:57
What I mean is that request-file returns a filename, it cannot return a
directory name. And I need the user to select a directory, not a file. Sorry
if I didn't make that clear.
[4/4] from: d4marcus::dtek::chalmers::se at: 18-Jan-2001 20:53
On Wed, 17 Jan 2001, Fantam wrote:
> In Rebol/View, 'request-file is nice, but it doesn't let you pick a directory.
> And that's exactly what I need. I wondered if anyone had written code for
> something like that.
Can't say how you could do it if you're using Windows. However, for a
Unix-like system, you could try writing a dot "." on the name line to get
the current directory returned. But of course, that trick doesn't let you
pick more than one directory.
Sorry if that doesn't help. ;-)
Marcus
------------------------------------
If you find that life spits on you
calm down and pretend it's raining