Forum Discussion
neethy_ashok
13 years agoOccasional Contributor
Please give the code for VBscript
I tried with the below code.But Type mismatch error is occuring.
sub Proj_Array
dim CST
CST="1,2,3,4,5,"
if Project.Variables.VariableExists("MyArray") then
else
Project.Variables.AddVariable "MyArray", "Object"
end if
Project.Variables.MyArray =split(CST,",")
for i=0 to UBOUND (Project.Variables.MyArray-1)
log.Message Project.Variables.MyArray(0)
next
end sub
I tried with the below code.But Type mismatch error is occuring.
sub Proj_Array
dim CST
CST="1,2,3,4,5,"
if Project.Variables.VariableExists("MyArray") then
else
Project.Variables.AddVariable "MyArray", "Object"
end if
Project.Variables.MyArray =split(CST,",")
for i=0 to UBOUND (Project.Variables.MyArray-1)
log.Message Project.Variables.MyArray(0)
next
end sub