Click here to Skip to main content
15,911,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB6 string mutates Pin
codefinger7-May-09 1:38
codefinger7-May-09 1:38 
AnswerRe: VB6 string mutates Pin
riced7-May-09 1:53
riced7-May-09 1:53 
GeneralRe: VB6 string mutates Pin
codefinger7-May-09 2:38
codefinger7-May-09 2:38 
GeneralRe: VB6 string mutates Pin
ChandraRam7-May-09 22:16
ChandraRam7-May-09 22:16 
GeneralRe: VB6 string mutates Pin
codefinger8-May-09 2:03
codefinger8-May-09 2:03 
GeneralRe: VB6 string mutates Pin
Thomas Krojer8-May-09 2:17
Thomas Krojer8-May-09 2:17 
QuestionRemove Similar Lines Pin
vijay24827-May-09 1:23
vijay24827-May-09 1:23 
AnswerRe: Remove Similar Lines Pin
riced7-May-09 2:16
riced7-May-09 2:16 
Your code makes two assumptions:.
1. The file is sorted so that similar records follow one another and are in date order.
2. There will only be two similar records in the file.

The first is obviously incorrect given the sample input. The second might be incorrect, not enough information to tell.

There is also a problem with your date comparison. It is actually comparing two string variables (dateTime and dateTime1). This means that 01/06/2009 comes before 30/05/2009, so you will get the wrong date (assuming that not all creation days are the same).

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralMessage Closed Pin
7-May-09 2:28
vijay24827-May-09 2:28 
GeneralRe: Remove Similar Lines Pin
riced7-May-09 6:52
riced7-May-09 6:52 
GeneralMessage Closed Pin
10-May-09 21:43
vijay248210-May-09 21:43 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 2:28
riced11-May-09 2:28 
GeneralMessage Closed Pin
11-May-09 2:54
vijay248211-May-09 2:54 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 3:06
riced11-May-09 3:06 
GeneralMessage Closed Pin
11-May-09 3:43
vijay248211-May-09 3:43 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 5:32
riced11-May-09 5:32 
Questioncreate process Pin
hrishiS7-May-09 1:15
hrishiS7-May-09 1:15 
AnswerRe: create process Pin
Eddy Vluggen7-May-09 1:29
professionalEddy Vluggen7-May-09 1:29 
GeneralRe: create process Pin
hrishiS7-May-09 1:39
hrishiS7-May-09 1:39 
AnswerRe: create process Pin
Eddy Vluggen7-May-09 8:34
professionalEddy Vluggen7-May-09 8:34 
AnswerRe: create process Pin
Dave Kreskowiak7-May-09 5:09
mveDave Kreskowiak7-May-09 5:09 
GeneralRe: create process Pin
hrishiS7-May-09 22:25
hrishiS7-May-09 22:25 
GeneralRe: create process Pin
Dave Kreskowiak8-May-09 1:19
mveDave Kreskowiak8-May-09 1:19 
QuestionInet Contol in visual Basic Pin
Devkranth Kishore Vanja7-May-09 0:56
Devkranth Kishore Vanja7-May-09 0:56 
AnswerRe: Inet Contol in visual Basic Pin
Dave Kreskowiak7-May-09 4:59
mveDave Kreskowiak7-May-09 4:59 

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.