Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiselecting listboxes
Message
De
28/07/1999 09:55:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00243779
Message ID:
00247111
Vues:
35
Hi James,

Firstly make sure you set all the SELECTED properties to .F.

Then try setting the .LISTINDEX = j, just after you set the SELECTED property to .T. - This is long winded but seems to work.

Here's my code for something similar:

WITH oObject
.ENABLED = .T.
.LISTINDEX = 1

FOR i = 1 TO .LISTCOUNT
.SELECTED(i) = .F.
NEXT i

FOR i = 1 TO .LISTCOUNT
IF (.LISTITEM(i,lColNumber) $ ALLTRIM(lcField2)) OR ALLTRIM(lcField2) == "ALL"
.SELECTED(i) = .T.
.LISTINDEX = i
ENDIF
NEXT i
ENDWITH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform