[REBOL] Re: View Question
From: carl:cybercraft at: 24-Dec-2003 22:42
On 25-Oct-03, Matt MacDonald wrote:
> Ok, stupid question, but I can't seem to get it to work.
> I want to have the user select a file save location for a file
> transfer and I want to be able to specify the default filename. Here
> is my code as of now.
> filepath: request-file/save/only/file filenames/:i
> where filenames/:i is the default filename
> This works fine except that it never inserts the default filename so
> the user always needs to type it in. Any ideas?
It works for me, though I note there's no /save refinement with my
request-file, so you must be using a later version (than I'm using on
this box, which is View 1.2.1.) I used the following values to test
>> i: 2
>> filenames: [%a %b %c]
== [%a %b %c]
and see that "none" is put in the requester if i is trying to
reference outside the block. If filenames/:i returns a file-name for
you, then maybe your request-file is bugged. I'd test it on a new
console first before reporting it as a bug though, just to be sure
it's not been corrupted by whatever else you've been running.