不是高手,请让路...谢谢
现在这样的一个集合obj假如包含(a=4,b=599,c=6,d=72,e=558)
dim tempvar
tempvar="a"
for each variables in obj
if variables<>tempvar then
str=str&variables&"="&variables的值
end
next
目前的情况是集合中有a,str就录取它和它的值!
结果会是 str="b=599c=6d=72e=558"
现在要解决的问题是:如果tempvar中有两个者两个以上的参数,假如形式是这样写的
dim tempvar
tempvar="a,e,c"
for each variables in obj
if variables<>tempvar then
str=str&variables&"="&variables的值
end
next
现在该如何判断!
想要的结果是str="b=599d=72"
声明:instr(tempvar,variables)<>0这种方式我会。不需要。还有没有其他的办法
象数组的方式:
例
dim tempvar
tempvar="a,e,c"
tempvar=split(tempvar,",")
for each variables in obj
for i to ubound(temparr)
if variables<>tempvar(i) then
str=str&variables&"="&variables的值
end
next
next
这样方式。。好象有点问题???谁能解决~~~~
不会请不要乱答·!!!!