Re: List with Quick Find?

new topic     » goto parent     » topic index » view thread      » older message » newer message

I had written:

> procedure onChange_SearchText()


Ooops. This is *probably* better (but still untested):


procedure onChange_SearchText()
   sequence text

   -- get the new text value
   text = getText( SearchText )

   -- search the SortedList
   for i = 1 to getCount( SortedList ) do
      if match( text, getItem( SortedList, i ) = 1 then
         setIndex( SortedList, i )
         return
      end if
   end for

   -- no match
   setIndex( SortedList, 0 )

end procedure

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu