File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on enum

 
Rupak Khurana
Ranch Hand
Posts: 89
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway to make the following code compile. The compiler complains about undefined symbol LIGHT, DARK.. If I comment Line 1 and uncomment Line 2, it will compile. But I want Line 1. Any ideas.. tricks...?

[ July 07, 2005: Message edited by: Rupak Khurana ]
[ July 07, 2005: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use shades.LIGHT etc. in your Line 1
 
Ariel Ortiz
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rupak,

The only thing that was missing was the name of the type before the enummeration value: "shades.LIGHT" instead of just "LIGHT".

...Ariel

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic