2 dimension array error and get swap value between column and raw
Original Reporter info from Mantis: Kartono Chandra
-
Reporter name: Kartono Chandra
Original Reporter info from Mantis: Kartono Chandra
- Reporter name: Kartono Chandra
Description:
//.... stringgrid1.
Const
Test : array [1.. 3, 1.. 3] of integer =
(
(6, 8, 3),
(8, 2, 5),
(9, 1, 4)
); // < get swap between col and row.
Test1 : array [1..4, 1..3] of integer;
(
(6, 8, 3, 1),
(8, 2, 5, 7),
(9, 1, 4, 2)
); // error
Var
X, y : integer;
Begin
For x:= 1 to 3 do
Begin
For y := 1 to 3 do
Begin
Stringgrid1.cell [x, y] := test[x, y]; //value get swap.
{
(
(6, 8, 3),
(8, 2, 5),
(9, 1, 4)
); // original value that i want
(
(6, 8, 9),
(8, 2, 1),
(3, 5, 4)
); // result
}
End;
End;
End.
Steps to reproduce:
Try using 2 dimensional array
Mantis conversion info:
- Mantis ID: 38487
- Build: 63526
- Version: 2.0.10