以下是使用 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
我只是想展示如何弹出一个文件选择对话框,然后在 REPL 中使用该值。
最佳答案
如果你使用就足够了
fn1: request-file
关于filenames - 在 Rebol 3 GUI 中请求文件的正确方法(Saphir 版本),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18069491/