xsharp.eu • Code reserved keyword in VO dialect ?
Page 1 of 1

Code reserved keyword in VO dialect ?

Posted: Tue Dec 06, 2022 8:57 am
by baramuse
Hi everyone,

we had an XSharp project started with the Vulcan dialect.
I wanted to update the project configuration and set it to VO but I now have a compilation error.
It seems that VO dialect does not allow "Code" as a class member name ?
The issue is that I can't rename the field as it is part of a deployed SOAP API.
Is there a way around or should I stick to the Vulcan dialect ?

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	XS9002	Parser: unexpected input 'Code'	Classes Publiques.prg	331	

Code: Select all

CLASS TableCodifElement
// Element d'une table de codification
  PUBLIC Code    AS STRING
...
END CLASS

Code reserved keyword in VO dialect ?

Posted: Tue Dec 06, 2022 9:12 am
by robert
Code is the 4 letter abbreviation of CodeBlock.
If you prefix the name with @@ then it is accepted.

Robert