Click here to Skip to main content
15,900,907 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to approach the project. please explain....... Pin
Paul Conrad15-Aug-06 14:29
professionalPaul Conrad15-Aug-06 14:29 
QuestionWindows Service OnStop Pin
Stevef6515-Aug-06 12:52
Stevef6515-Aug-06 12:52 
QuestionDirectInput and Mouse Visibility Pin
0rigin15-Aug-06 12:27
0rigin15-Aug-06 12:27 
Questionobject reference not set to an instance of the object Pin
TWatson4715-Aug-06 12:22
TWatson4715-Aug-06 12:22 
AnswerRe: object reference not set to an instance of the object Pin
Judah Gabriel Himango15-Aug-06 12:45
sponsorJudah Gabriel Himango15-Aug-06 12:45 
GeneralRe: object reference not set to an instance of the object Pin
TWatson4716-Aug-06 5:01
TWatson4716-Aug-06 5:01 
AnswerRe: object reference not set to an instance of the object Pin
Christian Graus15-Aug-06 12:54
protectorChristian Graus15-Aug-06 12:54 
QuestionREGEX and parse date Pin
Saamir15-Aug-06 11:07
Saamir15-Aug-06 11:07 
Hi guys,
I am trying to parse a date from a txt file using the following code.

while ( (sWhole = trd.ReadLine().Trim()) !=null )
{
if (sWhole =="" )
continue;
if(sWhole.EndsWith("=END="))
break;
String sDate;
Regex rDate=new Regex(".*\\d{2}/\\d{2}/\\d{4}\\s.*");

Match m5=rDate.Match(sWhole);
if (m5.Success)
{
sDate=m5.ToString();
scolDate.Add(sDate);
}

where scolDate=string collection.

When I run the file to parse the date, I keep getting an error saying "Index was out of range. Must be non negative and less than the size of the collection.

Please help!!!!

sasa

AnswerRe: REGEX and parse date Pin
Judah Gabriel Himango15-Aug-06 11:45
sponsorJudah Gabriel Himango15-Aug-06 11:45 
GeneralRe: REGEX and parse date Pin
Judah Gabriel Himango15-Aug-06 11:56
sponsorJudah Gabriel Himango15-Aug-06 11:56 
GeneralRe: REGEX and parse date Pin
User 665815-Aug-06 12:30
User 665815-Aug-06 12:30 
AnswerRe: REGEX and parse date Pin
Bitwise Gamgee15-Aug-06 12:29
Bitwise Gamgee15-Aug-06 12:29 
Questioncheck format of date input Pin
rcwoods15-Aug-06 10:41
rcwoods15-Aug-06 10:41 
AnswerRe: check format of date input Pin
Judah Gabriel Himango15-Aug-06 11:47
sponsorJudah Gabriel Himango15-Aug-06 11:47 
GeneralRe: check format of date input Pin
Guffa15-Aug-06 14:43
Guffa15-Aug-06 14:43 
Questionwhy file created event in Windows Servcice fires only once? Pin
Bharat Gadhia15-Aug-06 9:46
Bharat Gadhia15-Aug-06 9:46 
AnswerRe: why file created event in Windows Servcice fires only once? Pin
Ennis Ray Lynch, Jr.15-Aug-06 12:44
Ennis Ray Lynch, Jr.15-Aug-06 12:44 
Questionglobal variable .... Pin
mostafa_h15-Aug-06 9:25
mostafa_h15-Aug-06 9:25 
AnswerRe: global variable .... Pin
Judah Gabriel Himango15-Aug-06 9:54
sponsorJudah Gabriel Himango15-Aug-06 9:54 
GeneralRe: global variable .... Pin
mostafa_h15-Aug-06 10:59
mostafa_h15-Aug-06 10:59 
GeneralRe: global variable .... Pin
Judah Gabriel Himango15-Aug-06 11:50
sponsorJudah Gabriel Himango15-Aug-06 11:50 
GeneralRe: global variable .... Pin
User 665815-Aug-06 12:15
User 665815-Aug-06 12:15 
AnswerRe: global variable .... Pin
beatles169215-Aug-06 13:17
beatles169215-Aug-06 13:17 
GeneralRe: global variable .... [modified] Pin
mostafa_h15-Aug-06 20:50
mostafa_h15-Aug-06 20:50 
GeneralRe: global variable .... Pin
beatles169215-Aug-06 22:24
beatles169215-Aug-06 22:24 

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.