[DELPHI]字符串列表使用

时间:2020-10-28 19:22:20 笔试经验 我要投稿

[DELPHI]字符串列表使用

◇[DELPHI]在FORM或其他容器上画线

  var x,y:array [0..50] of integer;

  canvas.pen.color:=clred;

  canvas.pen.style:=psDash;

  form1.canvas.moveto(trunc(x[i]),trunc(y[i]));

  form1.canvas.lineto(trunc(x[j]),trunc(y[j]));

  ◇[DELPHI]字符串列表使用

  var tips:tstringlist;

  tips:=tstringlist.create;

  tips.loadfromfile(''filename.txt'');

  edit1.text:=tips[0];

  tips.add(''last line addition string'');

  tips.insert(1,''insert string at NO 2 line'');

  tips.savetofile(''newfile.txt'');

  tips.free;

 

【[DELPHI]字符串列表使用】相关文章:

Delphi10-06

有关PHP字符串比较函数strcmp()和strcasecmp()使用总结11-16

PHP 字符串正则替换函数preg-replace使用说明介绍11-15

俄语动物词汇列表12-04

俄语纺织词汇列表11-27

俄语阅读词汇列表11-26

俄语电力词汇列表11-26

俄语期货词汇列表11-25

俄语石油词汇列表11-24

粤语音节列表09-30