type
TForm1 = class(TForm)
Query1w1: TStringField;
Query1w2: TstringField;
Query1w3: TstringField; DBGrid1: TDBGrid;
BTNINS: TButton;
BTNDEL: TButton;
BTNQUT: TButton;
UpdateSQL1: TUpdateSQL;//上面是定义
procedure TForm1.BTNINSClick(Sender: TObject);
begin
Query1.Append;
Query1w1.value :='' ;
Query1w2.value :='' ;
Query1w3.value :='' ;
BTNINS.Enabled :=FALSE;
BTNUPD.Enabled :=FALSE;
BTNDEL.Enabled :=FALSE;
BTNYES.Enabled :=TRUE;
BTNCAL.Enabled :=TRUE;
end; Query1w1.value :='' ;
Query1w2.value :='' ;
Query1w3.value :='' ;
上面这三句保存时老是出现下面这个问题请问是什么原因?
field form1.query1w2 does not have a corresponding component,remove the
declaration?
TForm1 = class(TForm)
Query1w1: TStringField;
Query1w2: TstringField;
Query1w3: TstringField; DBGrid1: TDBGrid;
BTNINS: TButton;
BTNDEL: TButton;
BTNQUT: TButton;
UpdateSQL1: TUpdateSQL;//上面是定义
procedure TForm1.BTNINSClick(Sender: TObject);
begin
Query1.Append;
Query1w1.value :='' ;
Query1w2.value :='' ;
Query1w3.value :='' ;
BTNINS.Enabled :=FALSE;
BTNUPD.Enabled :=FALSE;
BTNDEL.Enabled :=FALSE;
BTNYES.Enabled :=TRUE;
BTNCAL.Enabled :=TRUE;
end; Query1w1.value :='' ;
Query1w2.value :='' ;
Query1w3.value :='' ;
上面这三句保存时老是出现下面这个问题请问是什么原因?
field form1.query1w2 does not have a corresponding component,remove the
declaration?
解决方案 »
- Format(' %.2x', [P[I]]) 啥意思?
- 为什么我的DELFHI.EXE文件在其他(没有装DELPHI)的机器上不能执行呢?(我已经在其他机器上设置了数据源)
- 请教: 如何把应用程序中Image、ImageList等使用的图标文件、bmp文件导入到资源文件中并进行编译???
- 简单问题,高分相送,有关于IE的!
- 如何实现动态改变Word中的字体格式?
- 怎样在计算机开机后两小时自动关机(两小时内一直在玩游戏
- 首次发贴。。多多指教!怎样通过Tprinter设置页面大小(长度和宽度)
- 请问怎么注册服务器!!^_^
- 如何每次将新添加到数据库的记录移到最底部? 就好像写字一样. 急, pls help!!!
- 有关后台表的处理。
- 这个sql很简单,可是我不会
- 欢迎做界面的高手进来讨论一下!如何把Delphi开发的界面做成仿XP界面?来者有分
单独定义,然后parent的属性挂到form1上就可以了
还有你的变量要先creat才能用哪有上来就给值的
TForm1 = class(TForm)
DBGrid1: TDBGrid;
BTNINS: TButton;
BTNDEL: TButton;
BTNQUT: TButton;
UpdateSQL1: TUpdateSQL;
end;
var
Query1w1: TStringField;
Query1w2: TstringField;
Query1w3: TstringField;//上面是定义
procedure TForm1.BTNINSClick(Sender: TObject);
begin
//先把那三个creat
//把那三个的parent设置成tform1.,
//然后再用下面的.
Query1.Append;
Query1w1.value :='' ;
Query1w2.value :='' ;
Query1w3.value :='' ;
BTNINS.Enabled :=FALSE;
BTNUPD.Enabled :=FALSE;
BTNDEL.Enabled :=FALSE;
BTNYES.Enabled :=TRUE;
BTNCAL.Enabled :=TRUE;
end;
//把那三个的parent设置成tform1.,
这怎么做 是什么意思
querylw1=TstringField.creat(self);
你只能重新把控件放上去,重新写那段代码,当然你可以把需要的pas文件里面的语句复制在记事本放好控件后再利用他们!