关于中置变量的问题
x1=25
x2= "ABC "
for i = 1 to 2
str5 = "x " + cstr(i)
debug.pring str5 'str5 想要印出 25与 "ABC "
next
[解决办法]
那就用集合
dim x as collection
set x = new collection
x.add 24, "x1 "
x.add "ABC ", "x2 "
for i=1 to x.count
debug.print x(i)
next
或者
debug.print x( "x1 ")
debug.print x( "x2 ")
[解决办法]
如果你是这个意思,那么超过两个时可以用 Choose()