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: isRanged function usage
Topic Summary:
Created On: 16-Aug-2006 05:43
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.
 16-Aug-2006 05:43
User is offline View Users Profile Print this message


Jayaprakash Lingamaneni

Posts: 20
Joined: 23-Jun-2006

Hi
i am using isRanged function to get the type of an attribute, whether it is ranged attribute or not a ranged attributes. but this function returning true for any type, my code is as follows

//---------------------------------------------------------------------------
AttrType at = find( current Module, "Integer" )

print "Attribute Name : " at.type"" "\n"

print "Base Type : " at.type"" "\n"

bool check = isRanged( at )

print "isRanged : " check""
//---------------------------------------------------------------------------


am I using it properly
plese give me a suggestion

Thanks in advance
Jaya Prakash

 

Report this to a Moderator Report this to a Moderator
 16-Aug-2006 08:05
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Try it e.g. for type Boolean, then it returns false - meaning that for Boolean type attributes you can not set mimimun and maximum values.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 16-Aug-2006 09:38
User is offline View Users Profile Print this message


Jayaprakash Lingamaneni

Posts: 20
Joined: 23-Jun-2006

Hi Makinen,
thank you for your reply

how can i find whether attributes is having range or not
if it is a ranged attribute i need to check the limit
if it is not ranged attribute no limit checking

isRanged function returning true for ranged attributes and non ranged attributes

Jaya Prakash
Report this to a Moderator Report this to a Moderator
 16-Aug-2006 09:50
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Example code from DXL Help:

// test for a minimum value
AttrType at = find(current Module, "Type with Min Int value")
if (at.minValue) {
// Enter here if type has a minimum value.
// The following is valid only if base type
// is integer.
// The operator is also defined for real and
// date
int i = at.minValue
}

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.