Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox selection problem
Message
De
11/01/2002 03:44:03
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, Afrique du Sud
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
ListBox selection problem
Divers
Thread ID:
00603373
Message ID:
00603373
Vues:
43
Hi All

Can anyone please help with this problem.
I have a list box which gets populated from a choice from a combo box.

E.g I choose location "R0001" from the combo box and the list box gets populated with all assets in that location. When I go to the list box, click
on the first record, then go to the last record , hold down the shift key and then click on the last record, it shows that it has selected all. But when i run the code to update these record it only takes the first record and the last record. I have the following code in my InteractiveChange event of the list box.

nNumberSelected = 0
FOR nCnt = 1 to thisform.List1.ListCount
IF Thisform.List1.Selected(nCnt)
nNumberSelected = nNumberSelected + 1
replace txfer with .T.
ENDIF
ENDFOR
Thisform.txtNoSelected.Value = nNumberSelected

Thanks in advance
Fida
Wannabe FoxPert!!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform