A question about arrays in classes...
Posted on 2000-02-10
My question/problem is this:
TSomething = Class
Max : integer;
A : Array[1..max] of Tobject;
Max := M;
The above gives an error since the compiler does not know the 'max'-variable when it tries to make the array.
This can of course be solved by making 'max' a constant outside the class-definition. But is there not another way to do it, so that the create decides the size of the array???