![]() user can stop program by setting bStopFlag = True This line was changed to enable code to workĭ(rwNextHam) Define a new row to be added into DataSet("Entity"]ĭataRow rwNextHam = () this was one of the changed line, that make program work While ((line = sr.ReadLine()) != null | bStopFlag = true) Major Loop to read FCC DB and split fields for inclusion intoDB TxtStatusBar.Text = "Processing DB records." Using (StreamReader sr = new StreamReader(textFlatFile.Text)) The using statement also closes the StreamReader. Create an instance of StreamReader to read from a file. Close connection as dataAdapter has copy of records in dsHams OleDbDataAdapter dataAdapter = new OleDbDataAdapter("Select * FROM Entity", conn) ĭataTable dtEntity = dsHams.Tables "User Id= Password= " + "Data Source=" + DestinationFile) Thanks, Chuck OleDbConnection conn = new = .4.0 " + ![]() Program does build w/o errors and run ok, till line identifed below. I do have a catch block that does not help me much wrt to debug, anything I can add to make my debugging easier? The braces do not necessarily match up due to cut and paste. Everything appears to work ok,Įxcept when putting the dataset back in the DB file, I get a program exception!!! Program is supposed to read in FCC Amateur Radio DB (flat file) and insert data intoĪn Access Database. Obviously missing a line or otherwise have malformed code - Help! This is my second c# program and the database stuff is quite different than vb 6.0, I am ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |