Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox click()
Message
 
 
To
11/06/2001 15:53:33
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00518019
Message ID:
00518057
Views:
11
This message has been marked as a message which has helped to the initial question of the thread.
>HI Nadya,
>Thank you for jumping in. Here is the code :

I assume, you have multiselect listbox. Ok, I would sligthly change this code, though don't think, it would make much difference.
>
 thisform.lockscreen=.t.
>LOCAL nRow, lnResult
>lnResult=0
>FOR nRow = 1 to This.ListCount
>	IF This.Selected(nRow)  THEN
>		lnResult=m.lnResult+VAL(This.List(nRow,2))
>	ENDIF
>NEXT nRow
>thisform.txtTotalValue.value=m.lnResult && Put here the name of textbox
 thisform.lockscreen=.f.
>I tried to put it in the When Event with the same results than in the Cklick() event.
>
>Thank you,
>Christian Cote
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform