Ok, ok, I discovered the answer. I need to put my variable between braces:
Public Enum Automatic, {Left}, Center, {Right}, Fill, Justify, CenterAcrossSelection, Distributed, JustifyDistributed Thanks a lot. From: Lord Quo Sent: Tuesday, August 24, 2010 10:42 AM To: Gambas-user@lists.sourceforge.net Subject: Re: 'Public Enum' Question Sorry, I wrote a terrible begginer error. This is my "correct" code: Public Enum Automatic, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed, JustifyDistributed But Left and Right give me problems because they are reserved word. Can I use them in another form? In VB.NET I remember that the solution is use [Left] and [Right] Thanks. From: Lord Quo Sent: Monday, August 23, 2010 7:17 PM To: Gambas-user@lists.sourceforge.net Subject: 'Public Enum' Question Hi all, I have a Public Enum declaration, but I need (or want) to use a constants named Left and Right: Public Enum StyleHorizontalAlignment Automatic, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed, JustifyDistributed But when I compile the project, Gambas give me an error: 'Automatic' unexpected In class StyleEnums.module line 2 Can anyone help me? Thanks Daniel Rojas ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user