|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Silly syntactic questionMy 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 wrote:
> I have an array() of object b = DirectCast( a(1), 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? HTH, Phill W. Thanks Phil,that has fixed it
Guy Show quoteHide quote "Phill W." wrote: > guy wrote: > > > 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" <g**@discussions.microsoft.com> schrieb: => 'b = DirectCast(a(1), Object())'.> 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 -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Show quote
Hide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb I wonder, where's the the difference to Phill's answer?> "guy" <g**@discussions.microsoft.com> schrieb: > > 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 "Armin Zingler" <az.nospam@freenet.de> schrieb: Sorry, I didn't see his reply because I replied before refreshing the > I wonder, where's the the difference to Phill's answer? message list. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb I see. Just because his msg was 4 hours old. :)> "Armin Zingler" <az.nospam@freenet.de> schrieb: > > 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. Armin Germans and Austrians, Austrians and Germans...
Show quoteHide quote "Armin Zingler" wrote: > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb > > "Armin Zingler" <az.nospam@freenet.de> schrieb: > > > 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. > > I see. Just because his msg was 4 hours old. :) > > > Armin > |
|||||||||||||||||||||||