Click here to Skip to main content
15,886,362 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: OT Pin
ymilan16-Jun-09 6:54
ymilan16-Jun-09 6:54 
GeneralRe: OT Pin
Luc Pattyn16-Jun-09 11:28
sitebuilderLuc Pattyn16-Jun-09 11:28 
GeneralRe: OT Pin
ymilan16-Jun-09 11:30
ymilan16-Jun-09 11:30 
QuestionRead the comma delimited text file. Pin
Member 402761712-Jun-09 4:59
Member 402761712-Jun-09 4:59 
AnswerRe: Read the comma delimited text file. Pin
EliottA12-Jun-09 5:25
EliottA12-Jun-09 5:25 
AnswerRe: Read the comma delimited text file. Pin
Dave Kreskowiak12-Jun-09 5:26
mveDave Kreskowiak12-Jun-09 5:26 
GeneralRe: Read the comma delimited text file. Pin
Member 402761716-Jun-09 21:17
Member 402761716-Jun-09 21:17 
GeneralRe: Read the comma delimited text file. Pin
Dave Kreskowiak17-Jun-09 1:39
mveDave Kreskowiak17-Jun-09 1:39 
Member 4027617 wrote:
If cr(2).Contains("D") Or cr(2).Contains("C") = True Then


First, this line is incorrectly written. It just so happens that the logic works in this case. This line SHOULD read:
If cr(2).Contains("D") = True Or cr(2).Contains("C") = True Then

or
If cr(2).Contains("D") Or cr(2).Contains("C") Then

Be consistent in your code.

Now that have a case where the line contains either D or C in that field, what are you doing if it doesn't? Hint: currently, you aren't doing anything. What do you have to do if the line doesn't contain your flag characters?


A guide to posting questions on CodeProject[^]



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




AnswerRe: Read the comma delimited text file. Pin
LloydA11112-Jun-09 9:15
LloydA11112-Jun-09 9:15 
QuestionTrying to acccess sql parameter from dataset Pin
Roger Rainey12-Jun-09 3:56
Roger Rainey12-Jun-09 3:56 
AnswerRe: Trying to acccess sql parameter from dataset Pin
Colin Angus Mackay12-Jun-09 4:28
Colin Angus Mackay12-Jun-09 4:28 
QuestionFolder permissions Pin
vhassan12-Jun-09 1:58
vhassan12-Jun-09 1:58 
AnswerRe: Folder permissions Pin
Dave Kreskowiak12-Jun-09 3:48
mveDave Kreskowiak12-Jun-09 3:48 
AnswerRe: Folder permissions Pin
Nagy Vilmos12-Jun-09 3:59
professionalNagy Vilmos12-Jun-09 3:59 
QuestionDynamic Data Exchange LinkExecute Pin
vhassan11-Jun-09 19:50
vhassan11-Jun-09 19:50 
AnswerRe: Dynamic Data Exchange LinkExecute Pin
Dave Kreskowiak12-Jun-09 3:46
mveDave Kreskowiak12-Jun-09 3:46 
GeneralRe: Dynamic Data Exchange LinkExecute [modified] Pin
vhassan14-Jun-09 18:24
vhassan14-Jun-09 18:24 
GeneralRe: Dynamic Data Exchange LinkExecute Pin
Dave Kreskowiak15-Jun-09 0:49
mveDave Kreskowiak15-Jun-09 0:49 
QuestionHiding the Script Combobox in FONT Dialog Pin
VB 8.011-Jun-09 18:27
VB 8.011-Jun-09 18:27 
AnswerRe: Hiding the Script Combobox in FONT Dialog Pin
LCARS x3211-Jun-09 22:41
LCARS x3211-Jun-09 22:41 
GeneralRe: Hiding the Script Combobox in FONT Dialog Pin
VB 8.011-Jun-09 23:28
VB 8.011-Jun-09 23:28 
Questionchanging cultutre of a datatable Pin
nitin_ion11-Jun-09 17:18
nitin_ion11-Jun-09 17:18 
AnswerRe: changing cultutre of a datatable Pin
Christian Graus11-Jun-09 17:39
protectorChristian Graus11-Jun-09 17:39 
GeneralRe: changing cultutre of a datatable Pin
nitin_ion11-Jun-09 17:43
nitin_ion11-Jun-09 17:43 
Questionnew export button to open save as dialog for crystal report Pin
hughesie7811-Jun-09 12:12
hughesie7811-Jun-09 12:12 

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.