The problem lies in the way you are creating your classes.
Whenever you are creating classes you use next sytax:
Code:
//ClassRefereneVar is variable trhrough which you will be accessing your class
//MyClass is the name of the class you are creating
ClassReferenceVar := MyClass.Create;
So in your case you need to call:
Code:
Grid[i,j] := Cell.create(i,j); //Right approach
instead of:
Code:
Grid[i,j].create(i,j //Wrong approach
EDIT: Pepole usually add T prefix to class names (TCell insted of just Cell) so that they can be quicly distinguished between normal variables in code.
Bookmarks