Each constant in the E-Basic scripting language begins with the prefix 'eb' and corresponds to a character in the ASCII table. E-Prime 2.0 includes the constant ebBackslash, which should map to ASCII character 92, the 'backslash' character ("\"). However, the constant instead maps to ASCII character 8, which is the 'Backspace' character. (ScriptSense, available in the E-Prime Professional edition, displays the available constants after entering 'eb', along with their associated ASCII value; see FEATURE: Ability for ScriptSense choices to appear immediately after typing eb to facilitate easier choosing of constants for details.)
The 'backslash' ("\") character is useful when writing E-Basic script, because it is an escape character. The escape character signals E-Basic to interpret the character which follows the backslash as a command. For example, when the escape character is followed by the letter 'n', E-Basic processes this as a new line. The E-Basic script....
|Debug.Print "Using the backslash as an escape character" & "\n" & "to insert a new line"|
....results in the following output:
Using the backslash as an escape character
To use the backslash character as the escape character, place two backslash characters together within a String rather than referencing the ebBackslash constant. For example:
|Debug.Print "This is how to put a backslash into a String\\"|
This topic applies to:
This item was introduced in E-Prime 2.0 Production Release (188.8.131.52).
This item was corrected in E-Prime 2.0 SP1 (184.108.40.2063).
This topic was created on:
Updated on 12/9/2013 5:48:00 PM (GMT)
This topic was last updated on:
Updated on 1/16/2014 1:43:00 PM (GMT)