Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
ChandraRam25-Jan-09 22:23
ChandraRam25-Jan-09 22:23 
GeneralRe: Problem to insert data from DateTimePicker to Access database Pin
Wendelius26-Jan-09 5:17
mentorWendelius26-Jan-09 5:17 
AnswerRe: Problem to insert data from DateTimePicker to Access database Pin
Mr Oizo26-Jan-09 1:13
Mr Oizo26-Jan-09 1:13 
AnswerRe: Problem to insert data from DateTimePicker to Access database Pin
ivo7526-Jan-09 6:23
ivo7526-Jan-09 6:23 
QuestionInsert New Line in File Stream Pin
IvanIT25-Jan-09 5:56
IvanIT25-Jan-09 5:56 
AnswerRe: Insert New Line in File Stream Pin
N a v a n e e t h25-Jan-09 6:04
N a v a n e e t h25-Jan-09 6:04 
GeneralRe: Insert New Line in File Stream Pin
IvanIT25-Jan-09 6:42
IvanIT25-Jan-09 6:42 
GeneralRe: Insert New Line in File Stream Pin
Dave Kreskowiak25-Jan-09 10:05
mveDave Kreskowiak25-Jan-09 10:05 
IvanIT wrote:
If CurrentLine.Contains("PRV*PE") = False Then
DataLines.Add(CurrentLine)
End If


So, what are you going to do if the contains method returns True? Right now, you're just dropping the line and not doing anything with it. You've completely dropped your string of "TODAY 007" and the logic doesn't come close to following your specified requirements. Shouldn't your code read something more like:
Do While Not sReader.EndOfStream
    DataLines.Add(CurrentLine)
    If CurrentLine.Contains("PRV*PE") Then
        DataLines.Add("TODAY 007")
    End If
Loop



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Insert New Line in File Stream Pin
IvanIT26-Jan-09 7:46
IvanIT26-Jan-09 7:46 
GeneralRe: Insert New Line in File Stream Pin
Dave Kreskowiak26-Jan-09 11:35
mveDave Kreskowiak26-Jan-09 11:35 
GeneralRe: Insert New Line in File Stream Pin
IvanIT26-Jan-09 12:36
IvanIT26-Jan-09 12:36 
QuestionRemote Connection MSSQL Express2005 Pin
r_mohd25-Jan-09 3:52
r_mohd25-Jan-09 3:52 
AnswerRe: Remote Connection MSSQL Express2005 Pin
Wendelius25-Jan-09 4:18
mentorWendelius25-Jan-09 4:18 
QuestionMCiWnd api problem. Pin
V.G24-Jan-09 18:31
V.G24-Jan-09 18:31 
AnswerRe: MCiWnd api problem. Pin
Christian Graus25-Jan-09 0:45
protectorChristian Graus25-Jan-09 0:45 
GeneralRe: MCiWnd api problem. Pin
V.G25-Jan-09 2:33
V.G25-Jan-09 2:33 
GeneralRe: MCiWnd api problem. Pin
Dave Kreskowiak25-Jan-09 5:18
mveDave Kreskowiak25-Jan-09 5:18 
QuestionNeed intro to TcpListener & TcpClient Pin
VIP-CoMmAnDo24-Jan-09 15:52
VIP-CoMmAnDo24-Jan-09 15:52 
AnswerRe: Need intro to TcpListener & TcpClient Pin
Dave Kreskowiak25-Jan-09 5:08
mveDave Kreskowiak25-Jan-09 5:08 
QuestionUse Interface imported from COM dll Pin
o m n i24-Jan-09 12:52
o m n i24-Jan-09 12:52 
AnswerRe: Use Interface imported from COM dll Pin
Dave Kreskowiak25-Jan-09 5:07
mveDave Kreskowiak25-Jan-09 5:07 
QuestionRe: Use Interface imported from COM dll Pin
o m n i25-Jan-09 5:29
o m n i25-Jan-09 5:29 
QuestionHow to submit vb.net form Pin
Riyaz.R24-Jan-09 10:46
Riyaz.R24-Jan-09 10:46 
AnswerRe: How to submit vb.net form Pin
Dave Kreskowiak24-Jan-09 11:03
mveDave Kreskowiak24-Jan-09 11:03 
AnswerRe: How to submit vb.net form Pin
Ashutosh Phoujdar26-Jan-09 19:49
Ashutosh Phoujdar26-Jan-09 19:49 

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.