loopinh and string problem
I have a problem loading my data to my database. I am using mysql. I noticed the problem when i executed my code and it kept giving me a "Argument 'Prompt' cannot be converted to type 'String'" error....
View Articleloopinh and string problem
Hi,Index of ArrayList (dbf) goes from 0 to dbf.Count - 1 so you should set ndx and ndx2 to 0 and your while loop should go until ndx(2) < dbf.Count.Also to read all the lines from your text file you...
View Articleloopinh and string problem
Or use the My.Computer.Filesystem.ReadAllTextMy.Computer.Filesystem.ReadAllBytesmethodsThese my actually help finding stuff in the .net framework and using them really simply. File functions are a...
View Articleloopinh and string problem
Hi HuyN_MS, the reason that ndx and ndx2 is set to 1 is that when in production the text file has a line on top that i don't want to enter into the database. The problem is not reading from the text...
View Articleloopinh and string problem
Hi,Thanks for clarifying ndx and ndx2. But with this While (ndx < dbf.Count + 1) I'm pretty sure you're going to get an out of range exception when accessing dbf(ndx) because dbf index is from 0 to...
View Articleloopinh and string problem
oh sorry about thatI added that statement in to test for something else. the original statement was while ndx < dbf.Count. and I did have this original statement however it is still doing the same...
View Articleloopinh and string problem
Hi,You're not closing the StreamWriter at the end so that may cause the output to be that way. If I close the StreamWriter then your code in Submit_Btn_Click works fine. You can- Put the code that...
View Article