Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is ListBox Okay?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00272435
Message ID:
00272445
Vues:
34
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform