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
t: Wednesday, August 27, 2003 3:36 PM
> To: Beginners Mailing List Perl (E-mail)
> Subject: Simulating VB Enum
>
>
> Visual Basic has a construct called Enum which looks like so:
>
> Enum namea
> dhbold
> dhcaption
> dhend
> dhform
>
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
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 3:36 PM
To: Beginners Mailing List Perl (E-mail)
Subject: Simulating VB Enum
Visual Basic has a construct called Enum which looks like so:
Enum namea
dhbold
dhcaption
dhend
dhform
.
end enum
What it essen
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
variable in the enum, so that
dhbold = 1
dhcaption = 2
dhend = 3
dh form