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: getting sorting information
Topic Summary:
Created On: 10-Mar-2004 14:59
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.
 10-Mar-2004 14:59
User is offline View Users Profile Print this message


Nora Lobenstein

Posts: 7
Joined: 4-Aug-2003

Hi,

Does anybody know why this program doesn't work? It recognizes that there is a sorting but I can't get the string. I did the same with the filter information and it worked, but it doesn't work with sort.

Sort s = current Sort
string sortString = ""
if (!null s){
sortString = stringOf(current Module, s)
print sortString

if (filtering current Module) print "yes"
else print "no"
}


Regards,
Hanna Bock
Report this to a Moderator Report this to a Moderator
 10-Mar-2004 15:51
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Hi,

the stringOf(sort) function assumes the current Module, and does not take a module as a parameter.
The following works.

Sort s = current Sort
string sortString = ""
if (!null s){
sortString = stringOf( s)
print sortString

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 10-Mar-2004 19:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Yes, the v5 DXL manual appears to be incorrect.

Don't forget to set the current module (just in case) before using these commands that presume it:
current = mod // or more efficiently: (current ModuleRef__) = mod
sortString = stringOf(s)
Report this to a Moderator Report this to a Moderator
 16-Mar-2004 09:23
User is offline View Users Profile Print this message


Nora Lobenstein

Posts: 7
Joined: 4-Aug-2003

Thanks for your help.

Hanna
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.