Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiselecting listboxes
Message
De
20/07/1999 15:51:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00243779
Message ID:
00243783
Vues:
36
Do you need a THIS.REFRESH at the end of this snippet?

>Hi All,
> I have a listbox on a form which has multiselect set turned on. If I create a for loop to go through the listbox and manually set the SELECTED property to true for certain elements in the listbox, nothing happens. The code that I have tried is summarized below:
>
>FOR j = 1 TO .lstSubset.LISTCOUNT
> IF lcSubsetValue = ALLT(.lstSubset.LIST(j))
> .lstSubset.SELECTED(j) = .T.
> EXIT
> ENDIF
>ENDFOR
>
>I have stepped through this code in the debugger and watched as Foxpro apparently executes the .lstSubset.selected(j) = .T. statement, but the value does not change. I'm using VFP 5.0a. any ideas?
>
>Thanks!
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform