R
rambo8
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么下面的代码不行?
var
r, c, RowsCount, ColumnsCount: Integer;
begin
RowsCount := ExcelWorksheet1.UsedRange[GetUserDefaultLCID].Rows.Count;
ColumnsCount := ExcelWorksheet1.UsedRange[GetUserDefaultLCID].Columns.Count;
for r := 1 to RowsCount do
for c := 1 to ColumnsCount do
Edit1.Text := ExcelWorksheet1.Cells.Item[r, c];
//以下代码略....
end;
为什么我在Edit中得到的字符窜总是为空?
var
r, c, RowsCount, ColumnsCount: Integer;
begin
RowsCount := ExcelWorksheet1.UsedRange[GetUserDefaultLCID].Rows.Count;
ColumnsCount := ExcelWorksheet1.UsedRange[GetUserDefaultLCID].Columns.Count;
for r := 1 to RowsCount do
for c := 1 to ColumnsCount do
Edit1.Text := ExcelWorksheet1.Cells.Item[r, c];
//以下代码略....
end;
为什么我在Edit中得到的字符窜总是为空?