I don't understand why I get a TypeMismatchExcetion in this code:
Dim V As variant Dim PA() as Picture V= PA If V.Type - 4096 = Variant.TypeObject Then Dim OA() As Object OA = V ' Why TypeMismatchException? End if
An Array of pictures IS an array of objects so I would think that would work... Is that a bug or just not supposed to be supported?
What I need to find out is what type object array it is
In this situation neither of these work:
V isA Picture ' gives false
V isA Picture() ' does not compile
What i wanted to do the the object array (assuming the array was not empty) was
Select case OA(0) Case IsA Class1 ... Case isA Class2 ... Etc
is there another way to approach this?