Incompatible Array Dimensions

Description

The dimensions of source arrays differ when assigning arrays.

Troubleshooting Tips

Source arrays should have the same dimension to provide the correct array assignment.

Example

Sub UserProc;
Var
    s: Array[3Of String;
    s1: Array[33Of String;
Begin
    s := s1;
End Sub UserProc;

When the specified code is compiled, the string s := s1; displays the following error: Incompatible array dimensions. To resolve the error, change the dimension of one of the arrays so that it matches dimension of the second array, for example: s: Array[3, 3] Of String;.

See also:

Compiler Messages