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 Apr 25 11:31:11 GMT 2024

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

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

Back to the top