delphi中DBGrid语句的意思?
unitUnit2;interfaceusesWindows,Messages,SysUtils,Variants,Classes,Graphics,Controls,F...
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, ToolWin, ComCtrls, ImgList, ActnList, DBActns;
type
TForm2 = class(TForm)
ActionList1: TActionList;
ImageList1: TImageList;
ToolBar1: TToolBar;
DBGrid1: TDBGrid;
DSAppend: TDataSetInsert;
DSEdit1: TDataSetEdit;
DSDelete: TDataSetDelete;
DSPost1: TDataSetPost;
Return: TAction;
DSAppendTB: TToolButton;
DSEditTB: TToolButton;
DSPostTB: TToolButton;
DSDeleteTB: TToolButton;
ReturnTB: TToolButton;
procedure ToolButton1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure DSAppendExecute(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
uses U_DataModule, U_Form1; //引用单元文件
{$R *.dfm}
1、procedure TForm2.FormCreate(Sender:Tobject);
2、var
3、 i:byte;
4、begin
5、 DBGrid1.columns[0].visible:=false;
6、 for i:=1 do 6 do
7、 DBGrid1.columns[2].PickList.Add(Nation[i]);
8、end;
各位高手你们好,以上程序段,我调试程序时都显示第7段程序“Nation"有错是什么意思啊?我不明白请教各位了。可以说我知道吗?谢谢你们了!以下是出错提示是什么意思啊。
[错误] Unit2.pas(55): Undeclared identifier: 'Nation'
[致命错误] U_Form1.pas(75): Could not compile used unit 'Unit2.pas' 展开
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, DBGrids, ToolWin, ComCtrls, ImgList, ActnList, DBActns;
type
TForm2 = class(TForm)
ActionList1: TActionList;
ImageList1: TImageList;
ToolBar1: TToolBar;
DBGrid1: TDBGrid;
DSAppend: TDataSetInsert;
DSEdit1: TDataSetEdit;
DSDelete: TDataSetDelete;
DSPost1: TDataSetPost;
Return: TAction;
DSAppendTB: TToolButton;
DSEditTB: TToolButton;
DSPostTB: TToolButton;
DSDeleteTB: TToolButton;
ReturnTB: TToolButton;
procedure ToolButton1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure DSAppendExecute(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
uses U_DataModule, U_Form1; //引用单元文件
{$R *.dfm}
1、procedure TForm2.FormCreate(Sender:Tobject);
2、var
3、 i:byte;
4、begin
5、 DBGrid1.columns[0].visible:=false;
6、 for i:=1 do 6 do
7、 DBGrid1.columns[2].PickList.Add(Nation[i]);
8、end;
各位高手你们好,以上程序段,我调试程序时都显示第7段程序“Nation"有错是什么意思啊?我不明白请教各位了。可以说我知道吗?谢谢你们了!以下是出错提示是什么意思啊。
[错误] Unit2.pas(55): Undeclared identifier: 'Nation'
[致命错误] U_Form1.pas(75): Could not compile used unit 'Unit2.pas' 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询