gpt4 book ai didi

livecode - 从网络更新 LiveCode 桌面应用程序

转载 作者:行者123 更新时间:2023-12-04 02:46:55 27 4
gpt4 key购买 nike

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

最佳答案

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

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 类(class)解释了这里的概念: http://lessons.runrev.com/s/lessons/m/4071/l/78702-opening-a-stack-from-the-server

关于livecode - 从网络更新 LiveCode 桌面应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18641456/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com