C
crystal_bobo
Unregistered / Unconfirmed
GUEST, unregistred user!
1,我要进行与后台为SQL Server数据库的连接以及访问和对应操作
要需不需要用到DataBase Desktop吗?
我要如何建立与这个数据库的连接?
请说说要开始进行设计的相应步骤
我现在也就是不知道从何下手:
2,同时请看看我在简单设计时出现的问题:
(project1文档中)
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {fengmian},
{$R *.RES}
begin
fengmian:=Tfengmian.Create(Application);
fengmian.Show;
fengmian.Update;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tfengmian, fengmian);
Application.CreateForm(TForm3, Form3);
fengmian.Hide;
fengmian.Free;
Application.Run;
end.
(Unit1文档中)
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Menus;
type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
N1: TMenuItem;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
uses Unit2;
end.
但是运行时总是提示有这些错误:
1dentifier expected but 'Begin'found
Undeclared identifier 'fengmian'
Missing operator or semicolon
对于这些:fengmian:=Tfengmian.Create(Application);
fengmian.Show;
fengmian.Update;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tfengmian, fengmian);
Application.Run;
fengmian.Hide;
fengmian.Free;
总是提示Missing operator or semicolon
要需不需要用到DataBase Desktop吗?
我要如何建立与这个数据库的连接?
请说说要开始进行设计的相应步骤
我现在也就是不知道从何下手:
2,同时请看看我在简单设计时出现的问题:
(project1文档中)
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {fengmian},
{$R *.RES}
begin
fengmian:=Tfengmian.Create(Application);
fengmian.Show;
fengmian.Update;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tfengmian, fengmian);
Application.CreateForm(TForm3, Form3);
fengmian.Hide;
fengmian.Free;
Application.Run;
end.
(Unit1文档中)
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Menus;
type
TForm1 = class(TForm)
MainMenu1: TMainMenu;
N1: TMenuItem;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
uses Unit2;
end.
但是运行时总是提示有这些错误:
1dentifier expected but 'Begin'found
Undeclared identifier 'fengmian'
Missing operator or semicolon
对于这些:fengmian:=Tfengmian.Create(Application);
fengmian.Show;
fengmian.Update;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.CreateForm(Tfengmian, fengmian);
Application.Run;
fengmian.Hide;
fengmian.Free;
总是提示Missing operator or semicolon