Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListBox selection problem
Message
De
16/01/2002 02:35:06
Fida Shamsoodeen
Combined Systems (Pty) Ltd
Centurion, Afrique du Sud
 
 
À
11/01/2002 04:02:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00603373
Message ID:
00605255
Vues:
14
Hi Cetin

I tried what you suggested but it did not work. The idea is to replace txfer with .T. for every record selected in that file
Any other suggestions?


Fida


>>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
>
>Fida,
>-InteractiveChange doesn't sound to be a good place for this. Use something else like lostfocus or a commandbutton.
>-You're repeatedly replacing txtfer with .t. in loop
>Cetin
Wannabe FoxPert!!!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform