![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: isRanged function usage Topic Summary: Created On: 16-Aug-2006 05:43 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 //--------------------------------------------------------------------------- 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
|
|
![]() |
|
![]() |
|
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/ |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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/ |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
isRanged function usage
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.