如何使用复选框提取行。我卡住了 text fld:" news", 复选框组:"复选框", 复选框:"检查1 - 检查10", 按钮:"按钮"和目的地fld"降低"。
现在我去了:
1)当我选择多个复选框时,复选框将提取多行表格文本fld" news"。
2)当我按下按钮时,按钮从fld" news"通过复选框将其放入fld" lower"水平一个接一个。 我上传了我的项目here,您可以查看它。 Plz建议。
答案 0 :(得分:1)
我想你想要这样的东西:
on mouseUp
local tLower, tNews, tLineNumber
put field "news" into tNews
repeat for each line tID in the childControlIDs of group "Checkboxs"
-- checkboxes named "Check <linenumber>"
put word 2 of the short name of control id tID into tLineNumber
put line tLineNumber of tNews & return after tLower
end repeat
delete the last char of tLower
put tLower into field "lower"
end mouseUp