Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Semantic of \"
Topic Summary:
Created On: 3-Aug-2005 19:21
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 3-Aug-2005 19:21
User is offline View Users Profile Print this message


Brian ODonnell

Posts: 2
Joined: 3-Aug-2005

I have seen this in examples and not sure what it means (\")

For example:
const string   attrName_1 = \"AL-State\"

Thanks for your help, I looked everywhere for the answer.
Report this to a Moderator Report this to a Moderator
 3-Aug-2005 19:30
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

The slash \ is the escape character in DXL. You can use it in strings so that special characters (like the ") are interpreted as part of the string. For example, \" puts the double quote character into that string rather than terminating it. If you want to print

"Hello world!"

(instead of

Hello world!)

you would enter print "\"Hello world!\"".

Your example seems to be missing the outside quotes though.
Hope this helps.

Edited: 3-Aug-2005 at 19:31 by Chris Jones
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.