1. you can write ItemN, UnitP, Quantity :array of integer;
2. if you wanna enter the name the array should be string, not integer
3. after that all don't forget to write end; and end.
4. program need to know the number of items in the array, you should write ItemN := new string[n + 1];, n+1 because it starts from 0