I have a problem when trying to write in Delphi a program that I wrote a time ago in Visual Basic. I, instead of using Stringrid, want to use Msflexgrid, for which I concerned it using import ActiveX from Delphi but the problem is that when trying to put the values of an array in the grid, for example:
for i := 1 to nRows-1 do
Begin
For j := 1 to nCols -1 do
Begin
temp := FloatToStr(A[i, j ]);
FlexGrid.textmatrix[j, i] := temp;
end;
end;
I got an error message because the property textmatrix has format widestring and not string like property Cells de Stringrid. If somebody has had this problem before or if somebody has idea of like solving it and to give some aid me.
Thanks
for i := 1 to nRows-1 do
Begin
For j := 1 to nCols -1 do
Begin
temp := FloatToStr(A[i, j ]);
FlexGrid.textmatrix[j, i] := temp;
end;
end;
I got an error message because the property textmatrix has format widestring and not string like property Cells de Stringrid. If somebody has had this problem before or if somebody has idea of like solving it and to give some aid me.
Thanks