如何从网格中获取数据

时间:2015-05-26 04:10:47

标签: grid livecode

如何在数据网格中看到hilightedline中的内容?

put the dgHilitedLine of group "DataGrid"  into theLine
   answer dgLine[theLine] 

如果“theLine”的值为5,那么,如何在网格中突出显示的字段中获取文本。

1 个答案:

答案 0 :(得分:1)

put the dgHilitedLines of group "Datagrid" into mylist
put the dgText of group "Datagrid" into myText
repeat for each item tItem in mylist
  put line tItem of myText & CR after myselctedlines
end repeat
answer myselctedlines

请参阅http://livecode.wikia.com/wiki/Datagrid_API