2.8 Compiler error XS9078

This forum is meant for questions and discussions about the X# language and tools
Post Reply
boonnam
Posts: 88
Joined: Mon May 08, 2017 6:42 pm
Location: USA

2.8 Compiler error XS9078

Post by boonnam »

I notice both Wolfgang and Chris discussed this error on this thread, https://www.xsharp.eu/forum/private-pro ... rror#17655, I want to ask a different question about how to correct this compile error. Our original code look like:

Code: Select all

FWrite(pCsv,'"'+cText+'"')
To get pass XS9078 error, we changed this line to:

Code: Select all

FWrite(pCsv,""""+cText+"""")
I tried to use an escape key such as
""" or "/""
Got a different compile. Is there another way beside using 4 double-quotes? Thanks.
User avatar
Chris
Posts: 4599
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

2.8 Compiler error XS9078

Post by Chris »

Hi Boonam,

If you use the VO dialect, then this version should also work fine:

Code: Select all

'"'+cText+'"'
If you need to use a different dialect, then the escaped string syntax is:

Code: Select all

e"""+cText+e"""
of course you can also do something like

Code: Select all

DEFINE DQ := e"""
DQ + cText + DQ
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
boonnam
Posts: 88
Joined: Mon May 08, 2017 6:42 pm
Location: USA

2.8 Compiler error XS9078

Post by boonnam »

Hello Chris. Thank you for the quick reply. I believe we are using VO dialect. But hard to tell now since the information for the Language and Dialect tabs are converted to graphic. The e""" does work. Attached are the screen shot of properties of our project that failed to compile.
Attachments
Dialect property.JPG
Dialect property.JPG (46.28 KiB) Viewed 307 times
Language property.JPG
Language property.JPG (43.48 KiB) Viewed 307 times
User avatar
robert
Posts: 4290
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

2.8 Compiler error XS9078

Post by robert »

Boonnam,
The dialect is on the Application Page.
dialect.png
dialect.png (10.27 KiB) Viewed 307 times
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
boonnam
Posts: 88
Joined: Mon May 08, 2017 6:42 pm
Location: USA

2.8 Compiler error XS9078

Post by boonnam »

That did the trick. It was Vulcan dialect. Thank you.
Post Reply