我的问题也是通过数据库动态建立节点,我以前通过循环实现了,后来丢了.
我添加数据到一个DS里
用下面的语句添加总是出错,为什么,请给予指教
例如添加根
dim nod as treenod
nod.text="全部材料"
treeview1.nodes.add(nod)
dim nod1 as treenod
for i=1 to 5
  nod1.text=ds.table("cs").rows(i).item(1)
  nod.childnodes.add(nod1)   '错误出现在这行总是说什么INDEX什么什么的?
next