Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Enumeration problem
Enumeration problem [message #44485] Tue, 05 June 2007 11:04 Go to next message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

Hi,

I have an enumeration with the literal "String" and I want test it whith :
if self.typ = #String then
....

But I have a syntax error. Do you know why ?

Thanks
Re: Enumeration problem [message #44516 is a reply to message #44485] Tue, 05 June 2007 11:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rchevrel.sodius.com

Hi Benjamin,

String is a reserved keyword. Use double-quote (#"String") or change
your literal name (prefix with "_" for example).

Regards,

Régis (rchevrel /<at>/ sodius.com)
www.mdworkbench.com


Benjamin CHEVALLEREAU a écrit :
> Hi,
>
> I have an enumeration with the literal "String" and I want test it
> whith :
> if self.typ = #String then
> ...
>
> But I have a syntax error. Do you know why ?
>
> Thanks
Re: Enumeration problem [message #44547 is a reply to message #44516] Tue, 05 June 2007 12:22 Go to previous message
Eclipse UserFriend
Originally posted by: bch.openbluelab.org

Thanks

Régis a écrit :
> Hi Benjamin,
>
> String is a reserved keyword. Use double-quote (#"String") or change
> your literal name (prefix with "_" for example).
>
> Regards,
>
> Régis (rchevrel /<at>/ sodius.com)
> www.mdworkbench.com
>
>
> Benjamin CHEVALLEREAU a écrit :
>> Hi,
>>
>> I have an enumeration with the literal "String" and I want test it
>> whith :
>> if self.typ = #String then
>> ...
>>
>> But I have a syntax error. Do you know why ?
>>
>> Thanks
Previous Topic:[ATL] Problem with latest run configuration ui
Next Topic:[ATL] XML2BPEL
Goto Forum:
  


Current Time: Thu Jan 21 06:18:33 GMT 2021

Powered by FUDForum. Page generated in 0.01742 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top