Results 1 to 6 of 6

Thread: Using Numbers in an Enum **SOLVED**

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Resolved Using Numbers in an Enum **SOLVED**

    Hey all, I am trying to use Numbers in my Enum, but I get an Error.

    Code:
    public enum myCode{100,200,300,....}
    If I write plain text it works

    Code:
    public enum myCode{one,two,three,....}
    Error says: Identifier expected!

    Can anyone explain?

    Thanks,

    Stephan
    Last edited by Sgt-Peppa; Aug 5th, 2005 at 08:01 AM. Reason: SOLVED
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width