Click here to Skip to main content
15,891,864 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: calculate subitems [modified] Pin
andredani7-Sep-07 13:10
andredani7-Sep-07 13:10 
You excplains pretty nice Chris =)

int result = 0;
foreach (ListViewItem lvi in listView3.Items)
{
result += (lvi.SubItems[4].ToString()) * (lvi.SubItems[5].ToString());
}
label12.Text = result.ToString();

it says: Error1Operator '*' cannot be applied to operands of type 'string' and 'string'

can´t i use * in that order?

What do should i do??Sigh | :sigh: Sigh | :sigh:


-- modified at 19:56 Friday 7th September, 2007
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 
Questionpinvoke error and struct Pin
Saamir7-Sep-07 3:34
Saamir7-Sep-07 3:34 

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.