Greetings XOJO people. Still using 2019 R3.2. At the moment, it is only for internal use and I can work around most of the gotchas that effect my simple programs. But, this one has me stumped.
I would like to embed newlines in constant strings. The constant parser does not seem to recognize \n or any of the other escaped control characters and is very happy to create a string that looks like “blah blah \n blah blah”.
When I try to create a constant string by program using something like:
const var MyString as string = "Hello " + char(10) + “Good bye!” //just a basic example
I get a an error that constants cannot be modified.
Any ways around this?
Many thanks
Jim Wagner - Oregon Research Electronics