I have 2 arrays...
apple : fruit;
Pack:array[1..5] of fruit;
BOX:array[1..10] of fruit;
I have finished all the code for a small program dealing with these arrays, but...I get an error saying Undeclared Identifier 'i' (note that the error is only coming up for the 'i' used on the array 'PACK')
SomeComponent.EatFruit(Pack);//problem!!
SomeComponent.EatFruit(BOX);
By using Im trying to refer to the whole array.(I do this with both and that's the problem)
I successfully did it yesterday but only with one array.
I Can refer to parts of the arrays like this:
SomeComponent.EatFruit(Pack[1]);
but I cant use as a method for refering to the whole part of an array 'twice' on 2 different arrays...
I really don't know what I can do about it...Please how do I do this?
apple : fruit;
Pack:array[1..5] of fruit;
BOX:array[1..10] of fruit;
I have finished all the code for a small program dealing with these arrays, but...I get an error saying Undeclared Identifier 'i' (note that the error is only coming up for the 'i' used on the array 'PACK')
SomeComponent.EatFruit(Pack);//problem!!
SomeComponent.EatFruit(BOX);
By using Im trying to refer to the whole array.(I do this with both and that's the problem)
I successfully did it yesterday but only with one array.
I Can refer to parts of the arrays like this:
SomeComponent.EatFruit(Pack[1]);
but I cant use as a method for refering to the whole part of an array 'twice' on 2 different arrays...
I really don't know what I can do about it...Please how do I do this?