Silly syntactic question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My brain is fried, could someone help with this?

I have an array() of object
the second element of the array is also an array() of object


i want to say something like dim a() as object
a= getstuff ' which populates it - this works
dim b() as object
b=a(1) 'this is the problem line
how do I cast this?
b=directcast(a(1),array)
does not work

cheers

Guy
 
guy said:
I have an array() of object
the second element of the array is also an array() of object

i want to say something like dim a() as object
a = getstuff ' which populates it - this works
dim b() as object
b = a(1) ' this is the problem line
how do I cast this?

b = DirectCast( a(1), Object() )

HTH,
Phill W.
 
guy said:
I have an array() of object
the second element of the array is also an array() of object


i want to say something like dim a() as object
a= getstuff ' which populates it - this works
dim b() as object
b=a(1) 'this is the problem line
how do I cast this?
b=directcast(a(1),array)
does not work

=> 'b = DirectCast(a(1), Object())'.
 
Armin Zingler said:
I wonder, where's the the difference to Phill's answer?

Sorry, I didn't see his reply because I replied before refreshing the
message list.
 
Herfried K. Wagner said:
Sorry, I didn't see his reply because I replied before refreshing
the message list.

I see. Just because his msg was 4 hours old. :)


Armin
 
Back
Top