mattc_1
15 years agoOccasional Contributor
Casting From Generic Object
This is probably more of a VBScript question. I know that it is a limited in functionality but I haven't been able to figure out how to cast out of a Generic Object.
I am using VS2008 to handle all the testing and am running the RunRoutineEx function for my parms. I am passing in an ArrayList that has two String Arrays in them. They pass in fine and I can see the values of each String inside the String Array in the Immediate Window but I thought I would be able to just call parm(0) to get the index 0 value but that does not work because it classified as an object when it gets into the TC Scripts. What's a little different is if I call IsArray it returns true and if I call TypeName it says that it is a String() which makes sense but why can't I use it as such?
Hopefully this all makes sense.
I am using VS2008 to handle all the testing and am running the RunRoutineEx function for my parms. I am passing in an ArrayList that has two String Arrays in them. They pass in fine and I can see the values of each String inside the String Array in the Immediate Window but I thought I would be able to just call parm(0) to get the index 0 value but that does not work because it classified as an object when it gets into the TC Scripts. What's a little different is if I call IsArray it returns true and if I call TypeName it says that it is a String() which makes sense but why can't I use it as such?
Hopefully this all makes sense.