L
lifeis
Unregistered / Unconfirmed
GUEST, unregistred user!
unit MyPiao;
interface
uses
SysUtils, Classes,Database,Controls;
type
TMyPiao = class
private
TRADETYPE : AnsiString;
CARGONAME : AnsiString;
MYWEITUOID:AnsiString;
STUFFTYPE:AnsiString;
BEGINPORT:AnsiString;
CONVERTPORT:AnsiString;
FINALPORT:AnsiString;
BEGINDATE:TDateTime;
MYID:AnsiString;
LATEDATE:TDate;
DANGER:AnsiString;
TRAFFICITEM:AnsiString;
FEEITEM:AnsiString;
IMPORT:AnsiString;
CARGOTYPE:AnsiString;
WEITUONUM:Integer;
WEITUOWEIGHT:Integer;
CARGOPACKAGE:AnsiString;
{ Private declarations }
public
{ Public declarations }
procedure SaveToDatabase();
procedure RetrieveFromDatabase();
constructor Create();
destructor Destroy;
end;
implementation
constructor TMyPiao.Create();
begin
TRADETYPE:='what2';
MYWEITUOID:='AnsiString';
STUFFTYPE:='AnsiString';
BEGINPORT:='what2';
CONVERTPORT:='what2';
FINALPORT:='what2';
BEGINDATE:=2002-02-02;
MYID:='what2';
LATEDATE:=2002-02-02;
DANGER:='what2';
TRAFFICITEM:='what2';
FEEITEM:='what2';
IMPORT:='what2';
CARGONAME:='what2';
CARGOTYPE:='what2';
WEITUONUM:=0;
WEITUOWEIGHT:=0;
CARGOPACKAGE:='what2';
end;
为什么总是出现非法访问错误。
interface
uses
SysUtils, Classes,Database,Controls;
type
TMyPiao = class
private
TRADETYPE : AnsiString;
CARGONAME : AnsiString;
MYWEITUOID:AnsiString;
STUFFTYPE:AnsiString;
BEGINPORT:AnsiString;
CONVERTPORT:AnsiString;
FINALPORT:AnsiString;
BEGINDATE:TDateTime;
MYID:AnsiString;
LATEDATE:TDate;
DANGER:AnsiString;
TRAFFICITEM:AnsiString;
FEEITEM:AnsiString;
IMPORT:AnsiString;
CARGOTYPE:AnsiString;
WEITUONUM:Integer;
WEITUOWEIGHT:Integer;
CARGOPACKAGE:AnsiString;
{ Private declarations }
public
{ Public declarations }
procedure SaveToDatabase();
procedure RetrieveFromDatabase();
constructor Create();
destructor Destroy;
end;
implementation
constructor TMyPiao.Create();
begin
TRADETYPE:='what2';
MYWEITUOID:='AnsiString';
STUFFTYPE:='AnsiString';
BEGINPORT:='what2';
CONVERTPORT:='what2';
FINALPORT:='what2';
BEGINDATE:=2002-02-02;
MYID:='what2';
LATEDATE:=2002-02-02;
DANGER:='what2';
TRAFFICITEM:='what2';
FEEITEM:='what2';
IMPORT:='what2';
CARGONAME:='what2';
CARGOTYPE:='what2';
WEITUONUM:=0;
WEITUOWEIGHT:=0;
CARGOPACKAGE:='what2';
end;
为什么总是出现非法访问错误。