QTP中为什么不能把Table对象中的值用GetCellData获取下来,赋给一个数组变量?
UI_ComboDiscountList_Column=.SlvTable("dgComboDiscountList").ColumnCountDimint_ComboD...
UI_ComboDiscountList_Column = .SlvTable("dgComboDiscountList").ColumnCount
Dim int_ComboDiscountList_Column,array_ComboDiscountList()
ReDim array_ComboDiscountList(0,UI_ComboDiscountList_Column)
int_ComboDiscountList_Column = 1
For int_ComboDiscountList_Column = 1 to UI_ComboDiscountList_Column
array_ComboDiscountList(0,UI_ComboDiscountList_Column) = .SlvTable("dgComboDiscountList").GetCellData 1,UI_ComboDiscountList_Column
最后一句array_ComboDiscountList(0,UI_ComboDiscountList_Column) = .SlvTable("dgComboDiscountList").GetCellData 1,UI_ComboDiscountList_Column,直接语法检查失败,我看网上都这么写的,为什么我这边这个不行?
急求帮助,谢谢各位! 展开
Dim int_ComboDiscountList_Column,array_ComboDiscountList()
ReDim array_ComboDiscountList(0,UI_ComboDiscountList_Column)
int_ComboDiscountList_Column = 1
For int_ComboDiscountList_Column = 1 to UI_ComboDiscountList_Column
array_ComboDiscountList(0,UI_ComboDiscountList_Column) = .SlvTable("dgComboDiscountList").GetCellData 1,UI_ComboDiscountList_Column
最后一句array_ComboDiscountList(0,UI_ComboDiscountList_Column) = .SlvTable("dgComboDiscountList").GetCellData 1,UI_ComboDiscountList_Column,直接语法检查失败,我看网上都这么写的,为什么我这边这个不行?
急求帮助,谢谢各位! 展开
1个回答
展开全部
For int_ComboDiscountList_Column = 1 to UI_ComboDiscountList_Column
array_ComboDiscountList(0,UI_ComboDiscountList_Column) = .SlvTable("dgComboDiscountList").GetCellData 1,int_ComboDiscountList_Column
Next
变量:UI_ComboDiscountList_Column-->int_ComboDiscountList_Column
for...next,结束标志
array_ComboDiscountList(0,UI_ComboDiscountList_Column) = .SlvTable("dgComboDiscountList").GetCellData 1,int_ComboDiscountList_Column
Next
变量:UI_ComboDiscountList_Column-->int_ComboDiscountList_Column
for...next,结束标志
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询