Page 1 of 1

DCSAY compilation problem

Posted: Fri Feb 26, 2016 9:27 am
by Piotr D
Roger,
I have installed new version (263) of Express. During compilation becam an error XBT0205: Unterminated string
in line:
@ 4,22 DCSAY {||IIF(P_DATAZW#SPACE(6).AND.P_FORMAZW#'00','[zwolnion'+IF(P_PLEC='K','a ','y ')+TRANSFORM(UZU_20(P_DATAZW),"@R 9999.99.99")+']',SPACE(25))}

When I change this linie so:
@ 4,22 DCSAY {||IIF(P_DATAZW#SPACE(6).AND.P_FORMAZW#'00','[zwolnion'+IF(P_PLEC='K','a ','y ')+TRANSFORM(UZU_20(P_DATAZW),'@R 9999.99.99')+']',SPACE(25))}

(also ' instead " in TRANSFORM) compilation is without problem.
With old version of Express (244 :) ) compilation was without problem.

Regards
Piotr

Re: DCSAY compilation problem

Posted: Fri Feb 26, 2016 10:05 am
by rdonnay
Send me your DCDIALOG.CH from build 244. I need to compare that file to build 263.

Re: DCSAY compilation problem

Posted: Fri Feb 26, 2016 10:14 am
by rdonnay
I am concerned that DCDIALOG.CH may be growing too large to handle such a complex code block during pre-processing.
There is a simple solution though until I figure this out:

Code: Select all

bCode := {||IIF(P_DATAZW#SPACE(6).AND.P_FORMAZW#'00','[zwolnion'+IF(P_PLEC='K','a ','y ')+TRANSFORM(UZU_20(P_DATAZW),"@R 9999.99.99")+']',SPACE(25))}

@ 4,22 DCSAY bCode

Re: DCSAY compilation problem

Posted: Fri Feb 26, 2016 12:37 pm
by Piotr D
Roger,
here is DCDialog.CH from version 244. As I say, when I change in this line character " with '
(TRANSFORM... "@R 9999.99.99" change to TRANSFORM..'@R 9999.99.99') compilation give
no error.

Piotr