【发布时间】:2014-07-11 14:13:19
【问题描述】:
我的 LiveCode 应用中有一个滚动字段,如下所示:
答:约翰·罗杰斯 234 9th
B: 亨利福特 555 1st
C:简方达 224 5th
我想让每行中的最后一个词(即第 9、第 1、第 5 个位置)具有特定的文本样式。例如,将其设为红色。
我尝试了几件事,包括使用此代码迭代行:
repeat for each line lC in field "fcontent"
set the foregroundColor of lC to "red"
end repeat
...但不断收到错误消息。请有人让我走上正轨?
【问题讨论】:
标签: text properties field livecode