Question Status

Verified
Alejandro Hellin asked a question on 11 Jun 2014 12:19 AM

I have a function that receives as a parameter a Text.

Also the function have a text constant defined as myTextConstant (= 'Hello world').

The codeunit is published as a webservice.

But when I invoke the function, the comparison of the text parameter with the text constant is not true.

I've put a  message('['+myTextConstant+']');   and I see that the message show a carriage return:

[Hellow world

How to avoid this carriage return?

Reply
Verified Answer
Daniele Rebussi responded on 11 Jun 2014 4:39 AM

Did you already try to delete the constant text and re-enter it again?

I guess there is some non-printable character (coming from a copy-paste?) shown as carriage return.

Reply
Verified Answer
Daniele Rebussi responded on 11 Jun 2014 4:39 AM

Did you already try to delete the constant text and re-enter it again?

I guess there is some non-printable character (coming from a copy-paste?) shown as carriage return.

Reply
Alejandro Hellin responded on 15 Jun 2014 11:02 AM

Yes. The copy-paste problems... Thank you.

Reply