0

我有一个带有卡名的字段。每张卡名都在自己的一行上。该字段已锁定。我想要一个用于执行的字段的脚本

go to card tName

其中 tName 包含用户单击的行的内容。

这个问题导致该问题的实现替代方案

如何使用脚本创建一组按钮?

4

4 回答 4

1

在您用作菜单的锁定字段中使用以下内容:

go to cd the selectedText of fld "<your-locked-field-name-here>"
于 2013-06-15T14:50:13.407 回答
1

如果卡片与字段中的列表顺序相同,则 hilitedline 将起作用。如果不是,您可以这样做:

get the text of the clickline
go card it
于 2013-06-16T04:24:41.677 回答
0

创建一个列表字段并将卡片的名称添加到其中。您可以使用此脚本自动执行此操作:

on preOpenStack
  repeat with x = 1 to number of cards
    put the short name of cd x & cr after myList
  end repeat
  put myList into fld "Your List FIeld"
end preOpenStack

现在您可以将以下任何行放入列表字段的 mouseUp 处理程序中:

go cd value(the clickline)
go cd (the text of the hilitedLine of me)
go cd (the selectedText)

可能还有其他可能性。

于 2013-06-16T07:32:23.907 回答
0

创建列表样式字段。它会自动突出显示您单击的行。然后在字段脚本中使用此处理程序:

on mouseUp
   get the hilitedText of me
   go card it
end mouseUp
于 2013-06-16T04:06:17.077 回答