求教,我想用创建一个stringGrid 的控件数组,怎样定义和创建呀?请大侠帮帮忙。 求教,我想用创建一个stringGrid 的控件数组,怎样定义和创建呀?请大侠帮帮忙。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考以下的程序(动态建立的是Tedit控件):public { Public declarations } tl : TList;procedure TForm1.formcreate(Sender: TObject);begin tl := TList.Create ; edit1 := TEdit.Create(nil); tl.Add(fledt1);end;procedure TForm1.FormDestroy(Sender: TObject);begin tl.Free;end;以后想用就采用一下方法调用TEdit(tl[1]).Text := '111'; s:array[1..10] of tstringGrid;beginfor i:= 1 to 10 dos[i]:=tstringGrid.create(nil); EOleSyserror改怎么解决? 一个sql语句中控制的问题(急) 求Delphi编码规范! delphi是不是出事了,大家帮忙试试,简单日期查询出现错误 怎么获得当前程序的窗体? Delphi7下使用TTable控件当数据变化时提示Invalid RowID 打包程序过程中能不能打包第三方的安装程序,如zip 我发现ImageList在Vista下可能会不正常,导致程序崩溃,不知是不是我的问题 MTS調試問題! 怎么弄个子窗体? 一個關於路徑的問題?----郁悶----急!!!! 找工程师 --DELPHI/SQLSERVER
public
{ Public declarations }
tl : TList;procedure TForm1.formcreate(Sender: TObject);
begin
tl := TList.Create ;
edit1 := TEdit.Create(nil);
tl.Add(fledt1);
end;procedure TForm1.FormDestroy(Sender: TObject);
begin
tl.Free;
end;以后想用就采用一下方法调用
TEdit(tl[1]).Text := '111';
for i:= 1 to 10 do
s[i]:=tstringGrid.create(nil);