3

我将如何构建一个 LiveCode 应用程序,该应用程序可以使用来自 Web 服务器的较新版本更新其组件堆栈?我已经看到这被提及为“容易做到”,但无法找到有关它如何被关闭的细节。

4

1 回答 1

4

这只是几行代码。从服务器打开堆栈并将其保存到磁盘:

go stack url ("http://path/to/server/file.livecode")
set the filename of this stack to <path on disk>
save this stack

如果您不想实际显示堆栈,则可以将其加载到变量中并将其保存到磁盘。如果你这样做,一定要使用二进制:

put url ("http://path/to/server/file.livecode") into myVar
put myVar into url ("binfile:" & <path on disk>)

第二种方法可以简化为一行脚本。

有一个 LiveCode 课程解释了这里的概念:http: //lessons.runrev.com/s/lessons/m/4071/l/78702-opening-a-stack-from-the-server

于 2013-09-05T16:49:20.020 回答