我製作的堆棧顯示分類的文本行。我做了一個卡,選擇類別把它們放在一個變量,並填充數據網格形式,而是用於填充了我的分類數據網格的代碼不起作用:用選定的類別填充數據網格表格
下面是用於填充表單代碼:
global gAllLines,gSelectedCategories,gMyCategories
on mouseUp
put empty into gAllLines
put fld "alllines" of cd "settings_files" of stack "settingsandfiles" into gAllLines
put empty into gMyCategories
repeat for each line i in gAllLines
if item 2 of i is among the items of gSelectedCategories then put i & cr after gMyCategories
end repeat
set the dgText of group "mycategories_compact" to gMyCategories
end mouseUp
的下載鏈接堆棧(最好的工作,到目前爲止,但仍不能100%確定)是:
https://dl.dropboxusercontent.com/u/99863601/Data%20grid%20Form_All%20Lines%20Categories%20Selections3.zip
請讓我知道如何解決它。
在此先感謝。
keram
謝謝蒙特。我更改了itemDelimiter,現在gMyCategories正確顯示在msg框中,但是當我用它填充數據表單時,只有複選框在右側可見。使用gAllLines填充相同的表單而不是顯示所有行,所以很奇怪......以下是更正後的堆棧的鏈接:https://dl.dropboxusercontent.com/u/99863601/Data%20grid%20Form_All%20Lines%20Categories %20Selections3.zip – keram
我添加了一個簡化的堆棧,其中包含相同的問題 - 可能會更容易跟蹤錯誤。儘管數據網格形式對於兩者都完全相同,但類別不會顯示,但所有行都會顯示。以下是測試堆棧的鏈接:https://dl.dropboxusercontent.com/u/99863601/TextLine%20Categories.zip – keram
再次感謝!它很好。現在我必須把它放到我的主棧中。 – keram