May 19, 2024, 03:32:18 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


SYNTAX ERROR

Started by TexasPete, December 26, 2008, 08:16:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TexasPete

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

Ionic Wind Support Team

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.
Ionic Wind Support Team