比如一个StringGrid,遍历第三列的值
如果等于6就删除该行?
如果等于6就删除该行?
解决方案 »
- 两个class,Access Violation问题,但是不知道问题出现在哪里,帮我看看!
- 要一个Delphi7.0安装序列号,谢谢!!!
- pointer 指向的数据通过网络发送,并重构
- 请问delphi7中如何定义控件数组?以及如何动态生成控件?
- 什么叫“写一个类”,组长交给的任务,我都需要做什么准备啊啊
- 如何在delhi中使用vc++的头文件,高手帮忙。。。!
- 来接分
- 有谁知道DFX for winamp的证据册码~~~~~~~~~~~~~~~~~~~~
- 哪里可以找一些人一起开发一个软件???
- 除了这以处还有好的DELPHI论谈吗?
- 关于形参和实参不一致的问题
- delphi7用TIdHTTP写抓取指定网页时,被报有毒,有没有其它代替办法?
var
i:integer;
begin
with stringgrid1 do
begin
for i:=row to RowCount-1 do
Rows[i]:=Rows[i+1];
RowCount:=RowCount-1;
end;
end;
var
i,j:integer;
begin
with stringgrid1 do
begin
for i:=RowCount-1 downto 0 do
begin
if Cells[2,i]='6' then
begin
for j:=i to RowCount-1 do
Rows[j]:=Rows[j+1];
RowCount:=RowCount-1;
end;
end;
end;
end;
StringGrid1.RowCount:=StringGrid1.RowCount-1;
这样为啥会报错呢