M
Mike Fellows
i have a function that returns an array
i have 6 items of data in the datagrid and i am setting them like this
MyArray.SetValue(1,0)
so im placing 1 in position 0 of my array
when i return my array using
return MyArray
when i call my function i use
dim MyNewArray as array
MyNewArray = myfunction(a,b,c,d)
when i do this, i get the error: Object reference not set to an instance of
an object.
is there a way i need to specifically pass arrays?
anyhelp would be appreciated
Mike
i have 6 items of data in the datagrid and i am setting them like this
MyArray.SetValue(1,0)
so im placing 1 in position 0 of my array
when i return my array using
return MyArray
when i call my function i use
dim MyNewArray as array
MyNewArray = myfunction(a,b,c,d)
when i do this, i get the error: Object reference not set to an instance of
an object.
is there a way i need to specifically pass arrays?
anyhelp would be appreciated
Mike