comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to select best from a long list?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to select best from a long list? [message #18204] Sun, 12 December 1999 00:00 Go to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Algorithm for this I see as follows:

list = define_list(Source) ; This is your importation procedure for 16000
list. ; Make sure /ALL_EVENTS, /EDITABLE are set for the text widget.

; The following will be in the event handler for text widget Edit events.
begin
widget_control, Ev.ID, get_value= Search_str
scroll_list = list[where(strpos(list, search_str) ne -1)]
widget_control, scroll_window, set_value=scroll_list
end

Of course, as David recommends, you need at least a widget or compound widget
interface, or maybe even a obget (widject) interface. Although I think those
are worth the time investment if you do more than occasional per-project
programming and will definitely re- use widjects. Cheers, Pavel


Sent via Deja.com http://www.deja.com/
Before you buy.
[Message index]
 
Read Message
Read Message
Previous Topic: Segmentation Fault
Next Topic: LMFIT -- stay away from it!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 11:17:41 PDT 2025

Total time taken to generate the page: 1.99922 seconds