Ok, glad you are making progress.
Type: Posts; User: Norm
Ok, glad you are making progress.
Did you try renaming that variable so it had a new name and was not a duplicate?
Change the name of the variable, say to i2 so there are two variables: i and i2.
You need to copy and paste the full text of the error messages because they have important information that you are...
Post the new code and describe the problems you are having.
patientTimeRecords[i]++;
That code increments the contents of the array indexed by i. It does NOT change the value of i.
To increment i, move the ++ to next to the i: ...[i++]