一个文本中有若干行怎么计算出它的行数啊?谢谢!
解决方案 »
- 关于WindowsMediaPlayer 急!!!!!!!
- 菜问题:如何获取listbox中选定行的文本.
- 请问用Outlook := GetActiveOleObject('Outlook.Application');调用outlook 提'示尚未调用coinitialize',请指教
- 急盼:dxTreeList中如何动态显示数据?
- 中quickrep的qrdbtext中数据为什么只显示数据表中的第一行?
- 造字的问题!
- 使用以下語句為什麼不能合併一列呢?????
- 请教各位一个问题,急
- XP+D5,ADO连不上数据库?
- 关于横向打印的问题
- DBGird标记特殊行?
- 帮助改善一下这个图片显示的功能,郁闷了很久,没找到解决的方法了。
Ellipse 200 310 320 250 210
Line 126 210 235 301
Rectangle 230 210 320 350
我要读出它的每行,且画出相应的图形item[1]是每行第一个字符串,
if item[1]='Line' then
begin
canvas.moveto(strtoint(item[2]),strtoint(item[3]));
canvas.lineto(strtoint(item[4]),strtoint(item[5]));
end;
if item[1]='Rectangle' then
begin
canvas.Rectangle(strtoint(item[2]),strtoint(item[3]),strtoint(item[4]),strtoint(item[5]));
end;
if item[1]='Ellipse' then
begin
canvas.Ellipse(strtoint(item[2]),strtoint(item[3]),strtoint(item[4]),strtoint(item[5]));
end;
这样循环只能画到第一个图形,我想加一个FOR循环,行数怎么求得啊