Enumeration problem [message #44485] |
Tue, 05 June 2007 11:04 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03421 seconds