发布于 2008-09-11 15:40:36
0楼
谢谢指点,但是没能明白你所说的 'HMIRuntime.Trace oItem,这个语句有效吗?,意思应该是读取运行系统对象的数值?但是不是很明白在程序怎么写?按照你说的
dim oItem
For Each oItem In ListView1.ListItems
xlSheet.Cells(irow + 2, 1).Value = HMIRuntime.Trace oItem
xlSheet.Cells(irow + 2, 2).Value = HMIRuntime.Trace oItem.SubItems(1)
xlSheet.Cells(irow + 2, 3).Value = HMIRuntime.Trace oItem.SubItems(2)
xlSheet.Cells(irow + 2, 4).Value = HMIRuntime.Trace oItem.SubItems(3)
xlSheet.Cells(irow + 2, 5).Value = HMIRuntime.Trace oItem.SubItems(4)
xlSheet.Cells(irow + 2, 6).Value = HMIRuntime.Trace oItem.SubItems(5)
Next
有他们替换原来的循环语句,但是HMIRuntime.Trace oItem.SubItems(5)应该不是这样写吧,请指点改怎样写?
承接自动化项目编程、设计、调试。
QQ:8304368