![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to write find function in listview Topic Summary: find function Created On: 22-Aug-2008 20:15 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I want to find a string in the list view. if the string is not found, i want to insert the string at the end of the listview.
how to do it? faisal 714.296.2533 faisal.zahidi@boeing.com |
|
![]() |
|
![]() |
|
Your problem is that you're trying to use the find function on a string value. find() is for Skip Lists.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
You'll need to store the strings in the listView in a skip list. Then search the skip list and if its not in there, its not in the listView. So then add it to the end with insert command using the noElems() function to get the next index in the listView to use as the "int row" arguement.
You can write a refresh function that will handle refreshing the listView whenever you add or remove a string in the skip list. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How to write find function in listview
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.