Teacher has told us that arrays in Pascal are counting from one
Weird, that program wasn't crashing without this - also when I was reading/writing data and causing out of range.
I know, but when I don't specify counting in array, it's from 1 to n.
The index of a dynamic array is ZERO based, ie. it must be whittin the range from 0 to (Length-1). It is NOT possible to change this to a ONE based system.
I know, but when I don't specify counting in array, it's from 1 to n.I feel ashamed that I hasn't thought earlier about so easy and simple solution.Anyway, thanks for your help.