Proper way to request-file in Rebol 3 GUI (Saphir build)

163 Views Asked by At

Is the following a correct way to get a file type value into a word using request-file?

view [
    text "Get file type value into a word"

    button "Target File Path" on-action [
        set 'fn1 request-file
    ]
 ]

 :fn1 ; a file value now in this word in our ad hoc scripting context

I just want to show how to have a pop-up file selection dialog, and then use that value in the REPL.

1

There are 1 best solutions below

2
On

It should suffice if you use

fn1: request-file