I am trying to create a class with a 2d array(arrscore) within the create method, I have done some research on this and this is as far as I have come.
constructor create(spriority, sSelOne, sSeltwo, sSelthree: string; arrcountry: array of string; arrscore: array of real);
Here is my declaration of my classes variables
type
tMap = class
private
// variables
priority, selone, seltwo, selthree: string;
country: array of string;
score: array of real;
This is my create code
begin
priority := spriority;
selone := sSelOne;
seltwo := sSeltwo;
selthree := sSelthree;
country := arrcountry;
score := arrscore;
end;
This doesn't work as it is incompatible types of dynamic array and array of real. Thanks in advance.