|
-
Nov 15th, 2001, 11:58 AM
#1
Thread Starter
Fanatic Member
Enumeration
Enum Test
9x25
9x34
end enum
this wont work with numbers..
Why not.. and is there a work around?
Seahag
-
Nov 15th, 2001, 12:01 PM
#2
Enums are a form of named constants and as such they follow the same role as for other named constants or variable names.
That is the name must start with a letter or an underscore sign not a number.
-
Nov 15th, 2001, 12:53 PM
#3
Thread Starter
Fanatic Member
Ok
The underscore doesn't work either.
Any suggestions how I can trick it!
-
Nov 15th, 2001, 01:01 PM
#4
What Joacim is refering to is that you have to create named constants:
VB Code:
Enum MyColors
RED = 1
GREE = 2
BLUE = 3
End Enum
-
Nov 15th, 2001, 01:15 PM
#5
Thread Starter
Fanatic Member
Yes
My problem is I work with alot of engineering math,
If I were to name it something else , it would confuse people( me included)
I refer to a 9x25, 8x24 10x36 .... of the Elevator type..
Thats thier name... ? I wouldn`t know how to describe them otherwise
I am suggesting there is no work around?
-
Nov 15th, 2001, 01:57 PM
#6
Just stick a letter in front of it, whats the big deal?
Enum Test
e9x25
e9x34
end enum
It still makes sense and you can tell what it is and it'll work.
-
Nov 15th, 2001, 04:23 PM
#7
Thread Starter
Fanatic Member
Fine then.. sheeesh

Thanx everone!
-
Nov 15th, 2001, 05:39 PM
#8
Sorry!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|