问题标签 [livecode]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
901 浏览

sql-server - 使用 LiveCode 通过 ODBC 从 SQL Server 检索 unicode 数据

我在使用 LiveCode 时遇到了这个问题,但我不知道这是问题所在还是与 ODBC 驱动程序有关。

LiveCode 内置的应用程序定期通过 ODBC 连接到 SQL Server 数据库,以检索各种数据。

负责数据库的应用程序正在升级,作为其中的一部分,所有文本字段都将转换为 Unicode 文本字段。本质上,这意味着以前定义为 varchar 的字段现在定义为 nvarchar,而以前定义为 text 的字段现在定义为 ntext。(顺便说一下,这是 SQL Server 2008。)

使用我们过去一直使用的查询,我们现在得到一个字符(字段中的第一个字符)而不是整个文本。我现在可以通过在选择查询中指定到 varchar 的转换来解决这个问题,例如,应用程序曾经发出请求,如 SELECT id,name FROM tab1 它现在发出请求,如 SELECT id,convert(varchar(255) , name) AS name FROM tab1

这行得通——我找回了以前得到的东西——但是(a)它很笨拙,(b)现在这很好,当客户只是将他们所有现有的数据迁移到数据库中时,但迟早他们可能会真正采取利用这次升级可以在字段中输入一些 Unicode 字符,然后我大概不会把它们弄出来。

不幸的是,我无权访问数据库或应用程序以插入测试数据——但我假设这个问题会出现——而且很可能它不会很明显,即我的只是一个微妙的问题应用程序没有处理输入的数据(但认为是)。

那么:有没有办法让 LiveCode 应用程序使用当前的 ODBC 驱动程序从 nvarchar 或 ntext 字段中正确检索完整数据?

0 投票
2 回答
190 浏览

image - 为什么将图像的文本设置为具有 rle 的paintCompression 的图像的文本会导致空白图像?

图像的文本似乎未修改。一个简单的测试,你可以看到我看到的是从图像库中获取 Mac Classic 问题图标,然后选择它并:

你最终应该得到一个看起来是空白图像的东西,但下面的 put 是真的:

有任何想法吗?

0 投票
1 回答
564 浏览

livecode - 我可以在 LiveCode iOS 项目中包含库堆栈吗?

我有一个包含在项目中的库堆栈。该库不是主堆栈的子堆栈,但是否可以为 iOS 构建而不使其成为子堆栈?

我尝试在“独立应用程序设置”中使用“堆栈”和“复制文件”窗格。

0 投票
1 回答
514 浏览

ios - Why do I get this error when compiling a LiveCode iOS external for device but it compiles fine for the simulator?

Here's the error:

When I build for the simulator it builds fine. My library is compiling fine. It's only at the linking stage for the dylib that is documented in lclink.sh as only for a dependency check for device builds that there's an issue:

I tried skipping this step using the following:

This allowed the script to continue on and build the object files for static linking in the device builds. They built fine but then when I went to build the standalone the dependency check blocked it. Is there any workaround anyone can recommend?

Note that I use a slightly modified lclink.sh which adds weak linking support and optional framework inclusion depending on the SDK you're building against. It can be found here if that helps: http://repo.goulding.ws/livecodeiossdk/src/b570507fe48274cc4c0f90102809194eafe5225d/lclink.sh?at=master


EDIT

Given that the error was clearly armv7 related I tried a build against armv7s and it builds fine. I'm coming to the conclusion that the the new dropbox sync sdk may have some armv7s only code. It appears to be sqlite related based on the error. Not sure what else to try at this stage...


EDIT

It appears to be a toolchain issue caused by the Dropbox sync api being compiled with Apple LLVM and LiveCode externals and device builds being compiled with Apple GCC.

0 投票
2 回答
249 浏览

livecode - 您可以在 LiveCode for iOS 的应答对话中使用 Unicode 吗?

我不得不在 iOS 中使用 LiveCode 暴力破解 unicode 答案对话。这不是一个非常优雅的解决方案。有没有人能够使 UTF8 编码的答案对话在 iOS 上工作?这是一年多以前的事了,但这个论坛帖子声称他们可以。论坛帖子

他们基本上说,如果您将 UTF16 转换为 UTF8,则答案对话框将接受该编码。我用一行日文创建了一个新的纯文本文件,用 UTF8 编码保存它,然后用 url ("file:translation.text") 将其拉入。我确认它正在提取正确的文本文件。我使用以下代码将 UTF8 编码的文本放入答案对话框中:
put uniDecode(uniEncode(tMsg,"UTF8")) into tMsg
answer tMsg

0 投票
1 回答
506 浏览

livecode - 我希望仅对特定 dataGrid 列中的单元格应用背景颜色?

我在 LiveCode 电子邮件列表上问了这个问题。没有回应,所以我认为这不可能。我知道编辑启用交替行颜色的模板图形。这对我没有帮助。

本课与我发现的最接近,但它仅将覆盖颜色设置为空单元格。它还有一个不良影响,即网格中存在的任何数据都不再显示。

http://lessons.runrev.com/s/lessons/m/datagrid/l/7327-how-do-i-override-the-default-behavior-for-rendering-data-to-a-cell

作为一个小实验,由于数据变得不可见(注意我在 WinXP 上),我尝试在我希望着色的列上放置一个不透明的图形。我将图形的墨迹设置为 AddMax 或 AddOver,看起来不错,但单元格中的文本消失了。然后我尝试将墨水设置为AddMin,它看起来仍然很好,但测试显示通过!!!!

所以,我认为这在视觉上可以正常工作,但是我怎样才能通过双击这个图形传递到下面的单元格(只允许在这个列中编辑单元格)?

0 投票
3 回答
364 浏览

ios - Livecode mobileAddContact

有没有人在 ios 上使用 mobileAddContact 并设法添加地址?

到目前为止,我可以添加姓名、联系方式(电话、电子邮件等),但无法添加地址详细信息(街道、城市、邮编等)。

这是我写的代码;

任何帮助,将不胜感激。

蒂亚,AA。

0 投票
2 回答
382 浏览

ios - 为 iOS 错误构建独立的 livecode:保存 armv7 的独立应用程序链接时出错,ID 失败:

我刚刚下载并安装了 Livecode Community 6.0 并尝试创建一个独立的应用程序。 在此处输入图像描述

在此处输入图像描述

BTW Livecode 5.5.4 工作正常。

知道是什么原因造成的吗?

0 投票
2 回答
690 浏览

livecode - 如何在每张卡片上放一个按钮?

我想在堆叠的每张卡片上放置一个“下一个”按钮。在 Hypercard 中,我可以将按钮放入卡片或背景中。我还没有看到如何在每张卡片上显示一个按钮。

0 投票
2 回答
819 浏览

utf-8 - 如何将 UTF 8 编码的文本文件读入文本字段?

如何将 UTF-8 编码的文本文件读入文本字段?