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: Sort a DBE list
Topic Summary: How To...
Created On: 20-May-2008 19:42
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.
 20-May-2008 19:42
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

I need to sort this list can someone let me know how.
Report this to a Moderator Report this to a Moderator
 20-May-2008 20:21
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

You could do three for loops like this:

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 20-May-2008 at 21:49 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
 20-May-2008 20:54
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

Perfect. Can you explain me the logic of the DXL. I'm practically new and I'm creating programs with chunks of programs.
Report this to a Moderator Report this to a Moderator
 20-May-2008 21:51
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Douglas Perez

Perfect. Can you explain me the logic of the DXL. I'm practically new and I'm creating programs with chunks of programs.


Added comments to the code in my previous post.

- Basically you need to count the number of users.
- Create a string array equal in size to the number of users.
- Add a user to each element of the string array.
- Sort the array using the sort command.
- Then loop through the arrray loading the user name into the list DBE.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 21-May-2008 13:14
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Here's a bit simpler way. Skip lists created using the createString method automatically sort string elements.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 21-May-2008 at 13:15 by David Pechacek
Report this to a Moderator Report this to a Moderator
 21-May-2008 13:39
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Heh....

Nice David, I completely forgot skip lists automatically sort.

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.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.