Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is ListBox Okay?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00272435
Message ID:
00272445
Views:
36
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform