merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
In the O’Reilly Excel Macros by Steven Roman there are given a number of lists of constants which all start with Enum property nameuse Win32::OLE; use Win32::OLE qw(in with); use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Excel';
This does seem to give all the values of the constants that I am looking for. However, it does not associate these with any property Is there any way that Perl can be used to write out these lists so that I can tell with which property they can be used with?use strict; use Win32::OLE; use Win32::OLE::Const; my $xl = Win32::OLE::Const->Load("Microsoft Excel"); printf "Excel type library contains %d constants:\n", scalar keys %$xl +; foreach my $Key (sort keys %$xl) { print "$Key = $xl->{$Key}\n"; }
Enum(‘XLFileFormat');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Excel enum lists
by dasgar (Priest) on Mar 07, 2011 at 19:00 UTC | |
|
Re: Excel enum lists
by ww (Archbishop) on Mar 07, 2011 at 18:38 UTC | |
|
Re: Excel enum lists
by planetscape (Chancellor) on Mar 09, 2011 at 01:01 UTC |