in reply to Re^6: parsing Win32::OLE::Variant
in thread parsing Win32::OLE::Variant
Looking again through Win32::OLE::Variant, it documents the access to arrays by using the ->Dim method to get at the bounds and by using the ->Get method to get at single array elements. So starting from your original code, which gets the results in $bbData, you should be able to get at the information through the following calls:
... my $res = $blpData->Subscribe( $aSec,3, $aFields, $plug, $plug, $bbDa +ta); warn "->Subscribe returns $res"; my @dimensions = $bbData->Dim(); warn "Dimensions are " . Dumper \@dimensions; for my $x ($dimensions[0]->[0].. $dimensions[0]->[1]) { for my $y ($dimensions[1]->[0].. $dimensions[1]->[1]) { my $value = $bbData->Get($x, $y); print Dumper( $value ), ">$value<"; }; }
If that doesn't work either, maybe the ->Subscribe call doesn't return values immediately and you need a different approach.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: parsing Win32::OLE::Variant
by kevind0718 (Scribe) on Sep 29, 2008 at 21:48 UTC | |
by Corion (Patriarch) on Sep 30, 2008 at 05:48 UTC |