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: error when trying to access argument
Topic Summary:
Created On: 17-Mar-2003 12:25
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.
 17-Mar-2003 12:25
User is offline View Users Profile Print this message


Duma Roman

Posts: 1
Joined: 12-Mar-2003

Hello.

I've got a DXL attribute, name "Sync", type bool.

Current DXL is as follows:

Object oc = current
bool cp
cp = oc."Sync"
if cp then ....

If "Sync" is not set to true or false, I've got an error message.

What can I do?
Report this to a Moderator Report this to a Moderator
 18-Mar-2003 21:09
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Duma,

Interesting observation. After doing some testing in DOORS 6, it seems that the value "false" will be returned to the boolean variable when the value is actually "null". I don't know if this is a bug or a "feature."

You can use the following construct:

if ( null oc."Sync" "" )

to differentiate values of "false" and "null", to bypass the feature described above. This returns the value of the boolean variable as a string, which will be a null string for null values.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
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.