RavCOder
5th September 2019, 13:46
I have an error in a script:

ptdsls24000( 25) Error: Illegal char ASCII: (160)
ptdsls24000( 25) Error:'ILLEGAL CHAR' not expected
------Too many errors, goodbye.



My script:


----declaration:
table ttdsls400
table ttdsls401

extern domain tcorno orno.f fixed
extern domain tcorno orno.t fixed
extern domain tcyesno txta.txt
extern domain tcyesno txtb.txt

extern domain tcqsl1 qoor
extern domain tcitem item


double sum_quantity
double sum


******group section********
group.1:
init.group:
get.screen.defaults()

******** choice section********

choice.cont.process:
on.choice:
execute(print.data)

choice.print.data:
on.choice:
if rprt_open() then
read.main.table()
rprt_close()
else
choice.again()
endif
******** fields section*********
field.orno.f:
when.field.changes:
orno.t = orno.f

******function section**********
functions:
function read.main.table()
{ select tdsls400.*
from tdsls400
where tdsls400._index1 inrange {:orno.f}
and {:orno.t}
order by tdsls400._index1
selectdo
select tdsls400.ofbp, tdsls401.item, sum(tdsls401.qoor) : sum_quantity
from tdsls400, tdsls401
group by tdsls400.ofbp
selectdo
sum = tdsls401.item + sum:quantity
endselect

rprt_send()

endselect
}





I don't understand this error and I never seen it before.
Regards,
-RavCoder-

mark_h
5th September 2019, 15:39
I think you need the |'s before the *'s on the comment lines.

RavCOder
5th September 2019, 16:04
ok i solved it was that baan does not accept the accented words.
Thanks and regards,
-RavCoder-