用表格创建数组来实现。
import win.ui; /*DSG{{*/ var winform = ..win.form( bottom=399;parent=...;right=599;text="aardio Form" ) winform.add( listview={ bgcolor=16777215;bottom=295;right=547;left=27;top=35;z=1;edge=1;cls="listview" }; button={ bottom=373;text="修改";left=344;top=322;z=2;right=494;cls="button" } ) /*}}*/ winform.listview.insertColumn("第一列",80,1); winform.listview.insertColumn("第二列",80,2); winform.listview.insertColumn("第三列",80,3); winform.listview.insertColumn("第四列",80,4); //二维数组 var tab={ {"11";"12";"13";"14"}; {"21";"22";"23";"24"}; {"31";"32";"33";"34"}; {"41";"42";"43";"44"} } for(i=1;#tab;1){ winform.listview.addItem(tab[ i ]) } winform.button.oncommand = function(id,event){ //winform.msgbox( winform.button.text ); winform.listview.setItemText("我修改了",3/*行*/,2/*列*/); } winform.show() win.loopMessage();