Well, I'm having problems returning arrays to COM
e.x.:
public string[] TestC()
{
string[] array = new string[] {"FOO", "BAR", "1", "ONE"};
return array;
}
public int[] TestD()
{
int[] array = new int[] {1,2,3,4};
return array;
}
In VBScript, I invoke TestC and TestD on my objects using
dim teh
teh = foobar.TestD
dim teh1
teh1 = foobar.TestC
I use IsArray() function and it returns true indicating that both teh and
teh1 are arrays if type CLng and CStr. Using UBound(..) returns the correct
array lengths.
How do I traverse or access elements of the array.
How do I view the contents of the first few indexes of the array?