谁能告诉我下面的错误是什么意思:
Error Diagnostic Information
An error occurred while evaluating the expression:
ThisMerchID=ListGetAt(CLIENT.CartMerchList, i)
Error near line 31, column 11.
--------------------------------------------------------------------------------
In function ListGetAt(list, index [, delimiters]) the value of index, which is 4, is not a valid index for the list given as a the first argument (this list has 3 elements). Valid indexes are in the range 1 through the number of elements in the list
The error occurred while processing an element with a general identifier of (CFSET), occupying document position (31:5) to (31:58
错误发生在练习时写的购物车.
购物车是这样的:进入购物车后,在用户所购物品旁有一个表单,在表单里输入数字就会改变物品的个数,也就是说如果在表单里输入"0"就是删除物品.如果一次只删除一件物品,或同时更新几件物品的个数都不会出现错误.
但一次要删除多件物品,就会出现上面的错误(也就是说同时在多件物品的表单中都输入"0"时发生的).
有兴趣帮个忙的朋友就看下代码(不是很长):
你的购物车没有物品!