Click here to Skip to main content
15,920,632 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: EnsureVisible in TreeView: how to ensure that horiz. scrollbar is aligned left [modified] Pin
Henry Minute1-Apr-09 12:41
Henry Minute1-Apr-09 12:41 
GeneralRe: EnsureVisible in TreeView: how to ensure that horiz. scrollbar is aligned left Pin
mp00017-Apr-09 5:31
mp00017-Apr-09 5:31 
QuestionDatabase + listbox with image or icon example Pin
wgarnett1-Apr-09 5:53
wgarnett1-Apr-09 5:53 
AnswerRe: Database + listbox with image or icon example Pin
Henry Minute1-Apr-09 10:35
Henry Minute1-Apr-09 10:35 
GeneralRe: Database + listbox with image or icon example Pin
wgarnett1-Apr-09 15:24
wgarnett1-Apr-09 15:24 
AnswerRe: CROSSPOST DO NOT REPLY!! Pin
Henry Minute2-Apr-09 11:32
Henry Minute2-Apr-09 11:32 
GeneralRe: CROSSPOST DO NOT REPLY!! Pin
wgarnett2-Apr-09 16:40
wgarnett2-Apr-09 16:40 
GeneralRe: CROSSPOST DO NOT REPLY!! Pin
wgarnett3-Apr-09 21:00
wgarnett3-Apr-09 21:00 
Questionvb.net dll and web page Pin
rmedo1-Apr-09 1:09
rmedo1-Apr-09 1:09 
AnswerRe: vb.net dll and web page Pin
Tom Deketelaere1-Apr-09 1:47
professionalTom Deketelaere1-Apr-09 1:47 
GeneralRe: vb.net dll and web page Pin
rmedo1-Apr-09 1:50
rmedo1-Apr-09 1:50 
QuestionConfirming the copying is success or not Pin
jishbalan1-Apr-09 0:43
jishbalan1-Apr-09 0:43 
AnswerRe: Confirming the copying is success or not Pin
0x3c01-Apr-09 0:45
0x3c01-Apr-09 0:45 
QuestionCount Similar Lines Pin
vijay248231-Mar-09 21:39
vijay248231-Mar-09 21:39 
AnswerRe: Count Similar Lines Pin
Eddy Vluggen31-Mar-09 22:04
professionalEddy Vluggen31-Mar-09 22:04 
AnswerRe: Count Similar Lines Pin
Tom Deketelaere31-Mar-09 23:36
professionalTom Deketelaere31-Mar-09 23:36 
GeneralRe: Count Similar Lines Pin
vijay24821-Apr-09 1:28
vijay24821-Apr-09 1:28 
GeneralRe: Count Similar Lines Pin
Tom Deketelaere1-Apr-09 1:43
professionalTom Deketelaere1-Apr-09 1:43 
GeneralRe: Count Similar Lines Pin
vijay24821-Apr-09 2:22
vijay24821-Apr-09 2:22 
GeneralRe: Count Similar Lines Pin
Tom Deketelaere1-Apr-09 2:35
professionalTom Deketelaere1-Apr-09 2:35 
GeneralMessage Closed Pin
1-Apr-09 2:50
vijay24821-Apr-09 2:50 
GeneralRe: Count Similar Lines Pin
Tom Deketelaere1-Apr-09 3:22
professionalTom Deketelaere1-Apr-09 3:22 
vijay2482 wrote:
Do While Not sa.ReadToEnd


That's where its going wrong. Readtoend returns a string. When doing a check with 'not' in it you need to have a boolean type.

For reading the text file you have to use the code you already had. (nothing changes there) but instead of trying to do your alterations (delete/new/alter) inside that loop you just put your data (from the textfile) in the correct column in the datatable.
Then after you'v read the text file, you can do all your alterations on the datatable.

(A datatable is basicly the same as a table in sql or access)
GeneralMessage Closed Pin
1-Apr-09 3:33
vijay24821-Apr-09 3:33 
GeneralRe: Count Similar Lines Pin
Tom Deketelaere1-Apr-09 3:50
professionalTom Deketelaere1-Apr-09 3:50 
GeneralMessage Closed Pin
1-Apr-09 4:05
vijay24821-Apr-09 4:05 

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.