Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert .NET DataTime to Excel Date/Time Pin
mbue27-Feb-06 22:39
mbue27-Feb-06 22:39 
GeneralRe: Convert .NET DataTime to Excel Date/Time Pin
Acheive_it27-Feb-06 22:42
Acheive_it27-Feb-06 22:42 
AnswerRe: Convert .NET DataTime to Excel Date/Time Pin
Le centriste28-Feb-06 6:45
Le centriste28-Feb-06 6:45 
QuestionPrinting list of objects in C# Pin
Spithas27-Feb-06 22:10
Spithas27-Feb-06 22:10 
Questionusing IEnumerator to removing items Pin
anderslundsgard27-Feb-06 21:02
anderslundsgard27-Feb-06 21:02 
AnswerRe: using IEnumerator to removing items Pin
Vikram A Punathambekar27-Feb-06 21:30
Vikram A Punathambekar27-Feb-06 21:30 
GeneralRe: using IEnumerator to removing items Pin
anderslundsgard27-Feb-06 21:35
anderslundsgard27-Feb-06 21:35 
AnswerRe: using IEnumerator to removing items Pin
vinSharp27-Feb-06 21:38
vinSharp27-Feb-06 21:38 
Hi APe,

Whenever you need to remove any item/s from an ArrayList, and that too by looping then you always need to traverse the ArrayList in reverse order.

This requirement cannot be achieved using an foreach statement. So, I think you would need to use the 'FOR' loop, as follows:

<br />
for (int i = testList.Count-1; i >= 0; i--)<br />
{<br />
  if(CONDITION is TRUE)<br />
  {<br />
    testList.RemoveAt(i);<br />
  }<br />
}<br />


Regards,
vinSharp

There are two types of fools in this world: One who give advice and the others who do not take it...Laugh | :laugh:
QuestionLaunch Novell mail client programmatically Pin
NewbieDude27-Feb-06 20:38
NewbieDude27-Feb-06 20:38 
QuestionUsing A Custom Theme File Pin
Muhammet Sait YILDIZ27-Feb-06 20:16
Muhammet Sait YILDIZ27-Feb-06 20:16 
QuestionMultiple Catch Block Pin
sivakumarUSTRI27-Feb-06 20:16
sivakumarUSTRI27-Feb-06 20:16 
AnswerRe: Multiple Catch Block Pin
CWIZO27-Feb-06 20:33
CWIZO27-Feb-06 20:33 
AnswerRe: Multiple Catch Block Pin
Vikram A Punathambekar27-Feb-06 21:35
Vikram A Punathambekar27-Feb-06 21:35 
Questionhow to convert into jpg or bmp Pin
relsirc27-Feb-06 19:54
relsirc27-Feb-06 19:54 
AnswerRe: how to convert into jpg or bmp Pin
planar27-Feb-06 21:03
planar27-Feb-06 21:03 
QuestionHow to programmatically send SMS thru GPRS card Pin
ykoon27-Feb-06 19:50
ykoon27-Feb-06 19:50 
AnswerRe: How to programmatically send SMS thru GPRS card Pin
Dario Solera27-Feb-06 23:09
Dario Solera27-Feb-06 23:09 
GeneralRe: How to programmatically send SMS thru GPRS card Pin
ykoon28-Feb-06 16:27
ykoon28-Feb-06 16:27 
QuestionSetting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 19:43
NewbieDude27-Feb-06 19:43 
AnswerRe: Setting Panel's LOCKED property in code Pin
microsoc27-Feb-06 21:30
microsoc27-Feb-06 21:30 
GeneralRe: Setting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 21:45
NewbieDude27-Feb-06 21:45 
GeneralRe: Setting Panel's LOCKED property in code Pin
microsoc27-Feb-06 22:04
microsoc27-Feb-06 22:04 
GeneralRe: Setting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 22:11
NewbieDude27-Feb-06 22:11 
GeneralRe: Setting Panel's LOCKED property in code Pin
NewbieDude27-Feb-06 22:21
NewbieDude27-Feb-06 22:21 
GeneralRe: Setting Panel's LOCKED property in code Pin
microsoc27-Feb-06 22:26
microsoc27-Feb-06 22:26 

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.