Click here to Skip to main content
15,921,156 members
Home / Discussions / C#
   

C#

 
GeneralRe: a try inside another Pin
Jan Holst Jensen23-May-11 22:25
Jan Holst Jensen23-May-11 22:25 
GeneralRe: a try inside another Pin
PIEBALDconsult4-May-11 1:34
mvePIEBALDconsult4-May-11 1:34 
GeneralRe: a try inside another Pin
Jan Holst Jensen24-May-11 1:47
Jan Holst Jensen24-May-11 1:47 
AnswerRe: a try inside another Pin
patbob4-May-11 8:08
patbob4-May-11 8:08 
AnswerRe: a try inside another Pin
SilimSayo5-May-11 7:44
SilimSayo5-May-11 7:44 
AnswerRe: a try inside another Pin
Sandy_L_Schultz5-May-11 8:01
Sandy_L_Schultz5-May-11 8:01 
QuestionCrystal Report Pin
coolboos2-May-11 23:07
coolboos2-May-11 23:07 
AnswerRe: Crystal Report Pin
sund7wells2-May-11 23:53
sund7wells2-May-11 23:53 
AnswerRe: Crystal Report Pin
thatraja3-May-11 2:40
professionalthatraja3-May-11 2:40 
QuestionHow to input class name by user? Pin
wjbjnr2-May-11 22:32
wjbjnr2-May-11 22:32 
AnswerRe: How to input class name by user? [modified] Pin
Steven.Pinto20002-May-11 23:35
Steven.Pinto20002-May-11 23:35 
GeneralRe: How to input class name by user? Pin
wjbjnr6-May-11 3:08
wjbjnr6-May-11 3:08 
GeneralRe: How to input class name by user? [modified] Pin
Steven.Pinto20008-May-11 20:36
Steven.Pinto20008-May-11 20:36 
GeneralRe: How to input class name by user? Pin
wjbjnr15-May-11 19:10
wjbjnr15-May-11 19:10 
GeneralRe: How to input class name by user? Pin
Steven.Pinto200015-May-11 19:26
Steven.Pinto200015-May-11 19:26 
QuestionAbout SplitContainer Resize Pin
jason_mf2-May-11 21:33
jason_mf2-May-11 21:33 
AnswerRe: About SplitContainer Resize Pin
Rick van Woudenberg3-May-11 2:07
Rick van Woudenberg3-May-11 2:07 
GeneralRe: About SplitContainer Resize Pin
jason_mf3-May-11 15:44
jason_mf3-May-11 15:44 
Questiondefault value in combobox Pin
sarang_k2-May-11 18:07
sarang_k2-May-11 18:07 
AnswerRe: default value in combobox Pin
JF20152-May-11 19:09
JF20152-May-11 19:09 
AnswerRe: default value in combobox Pin
Steven.Pinto20002-May-11 23:39
Steven.Pinto20002-May-11 23:39 
AnswerRe: default value in combobox Pin
Rick van Woudenberg3-May-11 1:15
Rick van Woudenberg3-May-11 1:15 
AnswerRe: default value in combobox Pin
BobJanova3-May-11 1:16
BobJanova3-May-11 1:16 
AnswerRe: default value in combobox Pin
ambarishtv3-May-11 3:23
ambarishtv3-May-11 3:23 
QuestionI can not achieve if statement in my code Pin
Honeyboy_202-May-11 9:11
Honeyboy_202-May-11 9:11 
HI,


I have arraylist and the first item in array represent time , the number of message in array may be reach up to 10,000 messages , so if I have messages reached to 2000 message the message number 20001 is set to 0 and when I try to get the total time I have problem because the total is the final element.


some issues :-

- if message set to zero after number of message I will consider the past time is 3640 seconds and so on.

total time = 3640 + the last element in the last in the next items.

- if number of message not set to zero the end item will represent the total time.


<br />
 for (int j = 0; j < numberOfMessagesInSection; j++)<br />
                {<br />
                  <br />
                    nextValue = int.Parse(MessageTimeAssociation[next + 1].messagebytes[0]);<br />
<br />
                    if (nextValue >= int.Parse(MessageTimeAssociation[j].messagebytes[0]))<br />
                    {<br />
                            totalSectionTime = int.Parse(MessageTimeAssociation[numberOfMessagesInSection - 1].messagebytes[0]);<br />
                        <br />
                    }<br />
                    else<br />
                    {<br />
<br />
                        totalSectionTime += 3640;<br />
<br />
                    }<br />


this my code but my problems appears in this cases :-

if the arraylist contains few messages the total time should be the final element but this code not achieve it.

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.