The code reads data from an excel.csv file
If a row cell contains data with a line return ie Alt+Enter
The result is the code reads it’s as a new Line, and therefore errors.
Dim objSR As New IO.StreamReader(objOFD.FileName)
dgImportedData.Rows.Clear()
Do While Not objSR.EndOfStream...
thanks, yes I know that lists and collections and indexes are zero based...
I'm wondering why the original developer would get a (total count then minus 1)
and later in the code add one to the count
the developer left, so Ive inherited the codes and unknown reasons of the code
thanks again
on line
The total Data.RowCount is actually 9 records
For i As Integer = 0 To dgImportedData.Rows.Count - 1
with the code dgImportedData.Rows.Count - 1
The total Data.RowCount is now 8 records.
Im not sure why the previous developer did the minus - 1
If I change the code to...
Why wouild the counters not being consistant,
When I run the code one time, it prints all except the last record
If I re-run the code again, the results are prints all records correctly ie including the last record
Note Ive attached doc with code posted in above thread, f it makes it easier to read
...also
if theres an easier way to write the code, as the original code including counters is hard to read
TIA
Ive inherited the following code
Summary
WinForms displays a list of users that have attended a course
Students either passed (X) or failed (Y) a course.
It prints a document list of all students that completed the course
It prints certificates for students that passed the course.
The...
ve inherited a code application.
When I either run the exe or debug the code the result is
The print dialog box is called.
However the Print dialog always displays behind/ (appears as hidden or doesnt display) the Window Form.
How can I get the Print dialog to be the main focus, current active...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.