xsharp.eu • Error XS9078 All elements of a string concatenation must be of type 'string'. El
Page 1 of 1

Error XS9078 All elements of a string concatenation must be of type 'string'. El

Posted: Mon Jun 08, 2020 10:54 am
by ic2
Another error, this worked as well last year:

Error XS9078 All elements of a string concatenation must be of type 'string'. Element 2 is of type 'dword'

LogEvents("IC2WebExchangeWCF2",0,Null_Object,"Length cText: "+slen(cText),0,"")

Slen is not a dword but a string. What is wrong here?

Dick

Error XS9078 All elements of a string concatenation must be of type 'string'. El

Posted: Mon Jun 08, 2020 10:59 am
by wriedmann
Hi Dick,
the SLen() function in VO and X# returns a dword, not a string.

Do you have redefined that funtion to return a string?

Wolfgang

Error XS9078 All elements of a string concatenation must be of type 'string'. El

Posted: Mon Jun 08, 2020 11:21 am
by ic2
Hello Wolfgang,



That's fast!

You ae absolutely right. I think I have a few instances in m,y program where I incorrectly assumed the "S" converts the outcome to a string.

It used to work however, and that it doesn't anymore is not more than fair :)

Dick

Error XS9078 All elements of a string concatenation must be of type 'string'. El

Posted: Mon Jun 08, 2020 12:10 pm
by Chris
Hi Dick,

Yes, that was a bug in the compiler, it was not reporting an error when adding a string to an int, word etc. This was fixed a few builds ago.