Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
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.
AnswerRe: I can not achieve if statement in my code PinPopular
Keith Barrow2-May-11 9:43
professionalKeith Barrow2-May-11 9:43 
GeneralRe: I can not achieve if statement in my code Pin
Honeyboy_202-May-11 14:30
Honeyboy_202-May-11 14:30 
GeneralRe: I can not achieve if statement in my code Pin
Dave Kreskowiak2-May-11 15:00
mveDave Kreskowiak2-May-11 15:00 
GeneralRe: I can not achieve if statement in my code Pin
Pete O'Hanlon2-May-11 20:11
mvePete O'Hanlon2-May-11 20:11 
GeneralRe: I can not achieve if statement in my code Pin
Keith Barrow2-May-11 23:47
professionalKeith Barrow2-May-11 23:47 
GeneralRe: I can not achieve if statement in my code Pin
#realJSOP3-May-11 4:41
mve#realJSOP3-May-11 4:41 
JokeRe: I can not achieve if statement in my code Pin
Peter_in_27802-May-11 16:18
professionalPeter_in_27802-May-11 16:18 
AnswerRe: I can not achieve if statement in my code Pin
Groulien2-May-11 20:12
Groulien2-May-11 20:12 
AnswerRe: I can not achieve if statement in my code Pin
Thomas Krojer2-May-11 22:37
Thomas Krojer2-May-11 22:37 
QuestionNew to C# - struggling with links + functions + ... etc etc ! Pin
ruby_murray2-May-11 9:10
ruby_murray2-May-11 9:10 
AnswerRe: New to C# - struggling with links + functions + ... etc etc ! Pin
Luc Pattyn2-May-11 9:43
sitebuilderLuc Pattyn2-May-11 9:43 
GeneralRe: New to C# - struggling with links + functions + ... etc etc ! [modified] Pin
BobJanova3-May-11 1:24
BobJanova3-May-11 1:24 
AnswerRe: New to C# - struggling with links + functions + ... etc etc ! [modified] Pin
Steven.Pinto20003-May-11 0:11
Steven.Pinto20003-May-11 0:11 
RantRe: New to C# - struggling with links + functions + ... etc etc ! Pin
Peter_in_27803-May-11 0:42
professionalPeter_in_27803-May-11 0:42 
GeneralRe: New to C# - struggling with links + functions + ... etc etc ! [modified] Pin
Steven.Pinto20004-May-11 23:58
Steven.Pinto20004-May-11 23:58 
QuestionSending and Recieving multiple SMS Pin
Christian_V_V2-May-11 7:11
Christian_V_V2-May-11 7:11 
Question[SOLVED] How to save a D3DImage as a PNG file [modified] Pin
Super Lloyd2-May-11 5:25
Super Lloyd2-May-11 5:25 

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.