IonicWind Software

IWBasic => General Questions => Topic started by: TexasPete on December 26, 2008, 08:16:06 AM

Title: SYNTAX ERROR
Post by: TexasPete on December 26, 2008, 08:16:06 AM
PLEASE HELP.  I HAVE DONE THE FOLLOWING.
DEF BACKSLASH:STRING

BACKSLASH="\"

I am getting a sytax error message. I do not know why . I have other defined strings that use the same format.
They work fine.
Anybody know what I am doing wrong.
Texas Pete
Title: Re: SYNTAX ERROR
Post by: Ionic Wind Support Team on December 26, 2008, 08:27:27 AM
Because you haven't read the users guide.  Specifically the part about string literals:

http://www.ionicwind.com/guides/emergence/language_topics_constants_and_literals.htm

To insert a backslash into the string you need to use two of them as it is an escape character, as outlined in the guide.

BACKSLASH="\\"

Paul.