Page 1 of 1

escape characters in strings and text objects

Posted: Wed Dec 09, 2015 5:14 am
by ErikG
Hi,

Is it possible to include escape characters such as tabs or line breaks in strings that will be treated as such in a text object. For instance:

Code: Select all

%s = "X" + "\t" + "Y" text MytextObject MyTextObject.append %s
My aim is that the text object should then contain X and Y with a tab inbetween.

Thanks,
Erik. (up to date version)

Re: escape characters in strings and text objects

Posted: Wed Dec 09, 2015 5:24 am
by johansamuelsson
Hi, for example

WfCreate u 1
%s = "X" + @Chr(09) + "Y"
%s2 = "X" + @Chr(10) + "Y"
Text MytextObject
MyTextObject.append %s
MyTextObject.append %s2

ASCII table: http://www.theasciicode.com.ar/

Regards Johan

Re: escape characters in strings and text objects

Posted: Thu Dec 10, 2015 4:55 am
by ErikG
Thanks Johan! :D