Not a vb person myself but would a hash do that then:
my %enum = (
ASSET => 1,
LIABILITY => 2,
EQUITY => 3,
REVENUE => 4,
EXPENSE => 5,
DIVIDEND => 6,
CONTRA_ASSET => 11,
);
Or is Vb's enum like mysql's enum? I ask since you where
doing a select and I don't know if that is a
Dan Muey wrote:
> In addtion to Rob's very sound advice it sound like you simply need an array:
>
> my @enum = qw(dhbold dhcaption dhend dhform);
>
> print $enum[0]; # prints dhbold
> print $enum[2]; # prints dbhend
>
> HTH
>
> DMuey
Sorry Dan,
I dn't think so. That usage actually goes in the w
> Remember these 3 words... search.cpan.org ;)
>
> http://search.cpan.org/search?query=enum&mode=all
>
> CPAN is always the best place to start looking for code.
>
> On the results page is looks like "enum" will do what you need.
>
> Rob
>
In addtion to Rob's very sound advice it sound like y
On Wednesday, August 27, 2003, at 02:35 PM, Harter, Douglas wrote:
Visual Basic has a construct called Enum which looks like so:
Enum namea
dhbold
dhcaption
dhend
dhform
.
end enum
What it essentially does is assign an incrementing numeric value to
each
varia
Remember these 3 words... search.cpan.org ;)
http://search.cpan.org/search?query=enum&mode=all
CPAN is always the best place to start looking for code.
On the results page is looks like "enum" will do what you need.
Rob
-Original Message-
From: Harter, Douglas [mailto:[EMAIL PROTECTED