>>I've never heard of anyone trying to use a FOR...ENDFOR to increment the list index. Have you tried using a memvar in the loop, instead?
>George!
>Yes i did, but I thought that memvars may have been executing to fast to trigger a match.
>
>When the form is running and I open the command window and:
>myform.mylist.value=mystring && The highlight covers correctly - eg it triggers.
>
>When the same inside a method, half the events trigger, the others miss. The ponderous listbox references in the for loop were an attempt to slow the process, and it did bump my trigger success, but still, there are some misses.
Have you tried something like this:
FOR lni = 1 TO ThisList.ListCount
IF ThisList.List(lni) = "whatever"
EXIT
ENDIF
NEXT
And if so what were the results. BTW, if the list is ordered there are much faster ways of doing this search.
George
Ubi caritas et amor, deus ibi est