Click here to Skip to main content
16,005,826 members
Home / Discussions / C#
   

C#

 
AnswerRe: calculate subitems Pin
Giorgi Dalakishvili7-Sep-07 11:11
mentorGiorgi Dalakishvili7-Sep-07 11:11 
GeneralRe: calculate subitems Pin
andredani7-Sep-07 11:16
andredani7-Sep-07 11:16 
AnswerRe: calculate subitems Pin
Skippums7-Sep-07 11:44
Skippums7-Sep-07 11:44 
GeneralRe: calculate subitems Pin
andredani7-Sep-07 11:52
andredani7-Sep-07 11:52 
GeneralRe: calculate subitems Pin
Guffa7-Sep-07 12:01
Guffa7-Sep-07 12:01 
GeneralRe: calculate subitems Pin
ChrisKo7-Sep-07 12:01
ChrisKo7-Sep-07 12:01 
GeneralRe: calculate subitems Pin
andredani7-Sep-07 12:17
andredani7-Sep-07 12:17 
GeneralRe: calculate subitems Pin
ChrisKo7-Sep-07 12:53
ChrisKo7-Sep-07 12:53 
That will iterate through all the ListViewItems in listview3's items collection.
With each item it will multiple the 4th subitem with the 5th subitem and add that to the result variable. Once the loop has completed, you are assigning that result variable to the Text property of the Label control.

So let's assume this ( using periods for decimal <US Standard> ):
listview3 contains: 
row1: blah, blah, blah, blah, 3.5, 100
row2: blah, blah, blah, blah, 2.5, 100

result = 0
First Iteration of loop: 3.5 * 100 = 350 : result = result + 350, so result is now 350
Second Iteration of loop: 2.5 * 100 = 250 : result = result + 350, so result is now 600


Hope that helps explain it.
GeneralRe: calculate subitems [modified] Pin
andredani7-Sep-07 13:10
andredani7-Sep-07 13:10 
GeneralRe: calculate subitems Pin
Skippums10-Sep-07 3:29
Skippums10-Sep-07 3:29 
Questiondatagrid selected rows loop Pin
jnallen7-Sep-07 6:12
jnallen7-Sep-07 6:12 
AnswerRe: datagrid selected rows loop Pin
Christian Graus7-Sep-07 6:22
protectorChristian Graus7-Sep-07 6:22 
GeneralRe: datagrid selected rows loop Pin
jnallen7-Sep-07 8:30
jnallen7-Sep-07 8:30 
GeneralRe: datagrid selected rows loop [modified] Pin
Larantz7-Sep-07 10:36
Larantz7-Sep-07 10:36 
GeneralRe: datagrid selected rows loop Pin
Larantz7-Sep-07 12:00
Larantz7-Sep-07 12:00 
QuestionSimple Login Pin
andredani7-Sep-07 6:11
andredani7-Sep-07 6:11 
AnswerRe: Simple Login Pin
Christian Graus7-Sep-07 6:19
protectorChristian Graus7-Sep-07 6:19 
GeneralRe: Simple Login [modified] Pin
andredani7-Sep-07 6:27
andredani7-Sep-07 6:27 
Questionc++ and c# issue Pin
dany_ch7-Sep-07 5:05
dany_ch7-Sep-07 5:05 
AnswerRe: c++ and c# issue Pin
Luc Pattyn7-Sep-07 5:20
sitebuilderLuc Pattyn7-Sep-07 5:20 
GeneralRe: c++ and c# issue Pin
dany_ch7-Sep-07 5:30
dany_ch7-Sep-07 5:30 
GeneralRe: c++ and c# issue Pin
led mike7-Sep-07 5:55
led mike7-Sep-07 5:55 
QuestionLayout Transform v/s Render Transform Pin
KrunalC7-Sep-07 5:02
KrunalC7-Sep-07 5:02 
QuestionCheckboxes? Pin
XFighter7-Sep-07 4:43
XFighter7-Sep-07 4:43 
AnswerRe: Checkboxes? Pin
Thomas Stockwell7-Sep-07 5:13
professionalThomas Stockwell7-Sep-07 5:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.