Matrix; Error "Too many actual parameters"
I'm using a 5d matrix and i'm staring myself blind on this little problem.
Why is the error "Too many actual parameters" occuring?
Am i doing something wrong or what do i overlook?
var Matrix: Variant;
Bounds: variant;
begin
Bounds := [1,10, 1,20, 1,30, 1,40, 1,50];
Matrix := VarArrayCreate(Bounds, varInteger);
Matrix[ 1, 2, 3, 4, 5] := 1; <===== Error "Too many actual parameters"
end.
regards,
Marius
Why is the error "Too many actual parameters" occuring?
Am i doing something wrong or what do i overlook?
var Matrix: Variant;
Bounds: variant;
begin
Bounds := [1,10, 1,20, 1,30, 1,40, 1,50];
Matrix := VarArrayCreate(Bounds, varInteger);
Matrix[ 1, 2, 3, 4, 5] := 1; <===== Error "Too many actual parameters"
end.
regards,
Marius