|
@@ -341,6 +341,7 @@ type
|
|
function GetAsDateTime: TDateTime; virtual;
|
|
function GetAsDateTime: TDateTime; virtual;
|
|
function GetAsFloat: Double; virtual;
|
|
function GetAsFloat: Double; virtual;
|
|
function GetAsLongint: Longint; virtual;
|
|
function GetAsLongint: Longint; virtual;
|
|
|
|
+ function GetAsLongWord: LongWord; virtual;
|
|
function GetAsInteger: Longint; virtual;
|
|
function GetAsInteger: Longint; virtual;
|
|
function GetAsVariant: variant; virtual;
|
|
function GetAsVariant: variant; virtual;
|
|
function GetOldValue: variant; virtual;
|
|
function GetOldValue: variant; virtual;
|
|
@@ -370,6 +371,7 @@ type
|
|
procedure SetAsDateTime(AValue: TDateTime); virtual;
|
|
procedure SetAsDateTime(AValue: TDateTime); virtual;
|
|
procedure SetAsFloat(AValue: Double); virtual;
|
|
procedure SetAsFloat(AValue: Double); virtual;
|
|
procedure SetAsLongint(AValue: Longint); virtual;
|
|
procedure SetAsLongint(AValue: Longint); virtual;
|
|
|
|
+ procedure SetAsLongWord(AValue: LongWord); virtual;
|
|
procedure SetAsInteger(AValue: Longint); virtual;
|
|
procedure SetAsInteger(AValue: Longint); virtual;
|
|
procedure SetAsLargeInt(AValue: Largeint); virtual;
|
|
procedure SetAsLargeInt(AValue: Largeint); virtual;
|
|
procedure SetAsVariant(const AValue: variant); virtual;
|
|
procedure SetAsVariant(const AValue: variant); virtual;
|
|
@@ -408,6 +410,7 @@ type
|
|
property AsDateTime: TDateTime read GetAsDateTime write SetAsDateTime;
|
|
property AsDateTime: TDateTime read GetAsDateTime write SetAsDateTime;
|
|
property AsFloat: Double read GetAsFloat write SetAsFloat;
|
|
property AsFloat: Double read GetAsFloat write SetAsFloat;
|
|
property AsLongint: Longint read GetAsLongint write SetAsLongint;
|
|
property AsLongint: Longint read GetAsLongint write SetAsLongint;
|
|
|
|
+ property AsLongWord: LongWord read GetAsLongWord write SetAsLongWord;
|
|
property AsLargeInt: LargeInt read GetAsLargeInt write SetAsLargeInt;
|
|
property AsLargeInt: LargeInt read GetAsLargeInt write SetAsLargeInt;
|
|
property AsInteger: Longint read GetAsInteger write SetAsInteger;
|
|
property AsInteger: Longint read GetAsInteger write SetAsInteger;
|
|
property AsString: string read GetAsString write SetAsString;
|
|
property AsString: string read GetAsString write SetAsString;
|
|
@@ -482,6 +485,7 @@ type
|
|
function GetAsFloat: Double; override;
|
|
function GetAsFloat: Double; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsLargeInt: Largeint; override;
|
|
function GetAsLargeInt: Largeint; override;
|
|
|
|
+ function GetAsLongWord: LongWord; override;
|
|
function GetAsString: String; override;
|
|
function GetAsString: String; override;
|
|
function GetAsAnsiString: AnsiString; override;
|
|
function GetAsAnsiString: AnsiString; override;
|
|
function GetAsUTF8String: UTF8String; override;
|
|
function GetAsUTF8String: UTF8String; override;
|
|
@@ -495,6 +499,7 @@ type
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsLargeInt(AValue: Largeint); override;
|
|
procedure SetAsLargeInt(AValue: Largeint); override;
|
|
|
|
+ procedure SetAsLongWord(AValue: LongWord); override;
|
|
procedure SetAsString(const AValue: String); override;
|
|
procedure SetAsString(const AValue: String); override;
|
|
procedure SetAsAnsiString(const AValue: AnsiString); override;
|
|
procedure SetAsAnsiString(const AValue: AnsiString); override;
|
|
procedure SetAsUTF8String(const AValue: UTF8String); override;
|
|
procedure SetAsUTF8String(const AValue: UTF8String); override;
|
|
@@ -576,6 +581,7 @@ type
|
|
protected
|
|
protected
|
|
function GetAsFloat: Double; override;
|
|
function GetAsFloat: Double; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsInteger: Longint; override;
|
|
|
|
+ function GetAsLongWord: LongWord; override;
|
|
function GetAsString: string; override;
|
|
function GetAsString: string; override;
|
|
function GetAsVariant: variant; override;
|
|
function GetAsVariant: variant; override;
|
|
function GetDataSize: Integer; override;
|
|
function GetDataSize: Integer; override;
|
|
@@ -583,6 +589,7 @@ type
|
|
function GetValue(var AValue: Longint): Boolean;
|
|
function GetValue(var AValue: Longint): Boolean;
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
|
|
+ procedure SetAsLongWord(AValue: LongWord); override;
|
|
procedure SetAsString(const AValue: string); override;
|
|
procedure SetAsString(const AValue: string); override;
|
|
procedure SetVarValue(const AValue: Variant); override;
|
|
procedure SetVarValue(const AValue: Variant); override;
|
|
function GetAsLargeInt: Largeint; override;
|
|
function GetAsLargeInt: Largeint; override;
|
|
@@ -597,6 +604,66 @@ type
|
|
end;
|
|
end;
|
|
TIntegerField = Class(TLongintField);
|
|
TIntegerField = Class(TLongintField);
|
|
|
|
|
|
|
|
+{ TSmallintField }
|
|
|
|
+
|
|
|
|
+ TSmallintField = class(TLongintField)
|
|
|
|
+ protected
|
|
|
|
+ function GetDataSize: Integer; override;
|
|
|
|
+ public
|
|
|
|
+ constructor Create(AOwner: TComponent); override;
|
|
|
|
+ end;
|
|
|
|
+
|
|
|
|
+{ TWordField }
|
|
|
|
+
|
|
|
|
+ TWordField = class(TLongintField)
|
|
|
|
+ protected
|
|
|
|
+ function GetDataSize: Integer; override;
|
|
|
|
+ public
|
|
|
|
+ constructor Create(AOwner: TComponent); override;
|
|
|
|
+ end;
|
|
|
|
+
|
|
|
|
+{ TAutoIncField }
|
|
|
|
+
|
|
|
|
+ TAutoIncField = class(TLongintField)
|
|
|
|
+ Protected
|
|
|
|
+ procedure SetAsInteger(AValue: Longint); override;
|
|
|
|
+ public
|
|
|
|
+ constructor Create(AOwner: TComponent); override;
|
|
|
|
+ end;
|
|
|
|
+
|
|
|
|
+{ TLongWordField }
|
|
|
|
+
|
|
|
|
+ TLongWordField = class(TNumericField)
|
|
|
|
+ private
|
|
|
|
+ FMinValue,
|
|
|
|
+ FMaxValue : LongWord;
|
|
|
|
+ Procedure SetMinValue (AValue : LongWord);
|
|
|
|
+ Procedure SetMaxValue (AValue : LongWord);
|
|
|
|
+ protected
|
|
|
|
+ function GetAsFloat: Double; override;
|
|
|
|
+ function GetAsInteger: Longint; override;
|
|
|
|
+ function GetAsLargeInt: Largeint; override;
|
|
|
|
+ function GetAsLongWord: LongWord; override;
|
|
|
|
+ function GetAsString: string; override;
|
|
|
|
+ function GetAsVariant: variant; override;
|
|
|
|
+ function GetDataSize: Integer; override;
|
|
|
|
+ procedure GetText(var AText: string; ADisplayText: Boolean); override;
|
|
|
|
+ function GetValue(var AValue: LongWord): Boolean;
|
|
|
|
+ procedure SetAsFloat(AValue: Double); override;
|
|
|
|
+ procedure SetAsInteger(AValue: Longint); override;
|
|
|
|
+ procedure SetAsLargeInt(AValue: Largeint); override;
|
|
|
|
+ procedure SetAsLongWord(AValue: LongWord); override;
|
|
|
|
+ procedure SetAsString(const AValue: string); override;
|
|
|
|
+ procedure SetVarValue(const AValue: Variant); override;
|
|
|
|
+ public
|
|
|
|
+ constructor Create(AOwner: TComponent); override;
|
|
|
|
+ Function CheckRange(AValue : LargeInt) : Boolean;
|
|
|
|
+ property Value: LongWord read GetAsLongWord write SetAsLongWord;
|
|
|
|
+ published
|
|
|
|
+ property MaxValue: LongWord read FMaxValue write SetMaxValue default 0;
|
|
|
|
+ property MinValue: LongWord read FMinValue write SetMinValue default 0;
|
|
|
|
+ end;
|
|
|
|
+
|
|
{ TLargeintField }
|
|
{ TLargeintField }
|
|
|
|
|
|
TLargeintField = class(TNumericField)
|
|
TLargeintField = class(TNumericField)
|
|
@@ -611,6 +678,7 @@ type
|
|
function GetAsFloat: Double; override;
|
|
function GetAsFloat: Double; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsLargeInt: Largeint; override;
|
|
function GetAsLargeInt: Largeint; override;
|
|
|
|
+ function GetAsLongWord: LongWord; override;
|
|
function GetAsString: string; override;
|
|
function GetAsString: string; override;
|
|
function GetAsVariant: variant; override;
|
|
function GetAsVariant: variant; override;
|
|
function GetDataSize: Integer; override;
|
|
function GetDataSize: Integer; override;
|
|
@@ -619,6 +687,7 @@ type
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsLargeInt(AValue: Largeint); override;
|
|
procedure SetAsLargeInt(AValue: Largeint); override;
|
|
|
|
+ procedure SetAsLongWord(AValue: LongWord); override;
|
|
procedure SetAsString(const AValue: string); override;
|
|
procedure SetAsString(const AValue: string); override;
|
|
procedure SetVarValue(const AValue: Variant); override;
|
|
procedure SetVarValue(const AValue: Variant); override;
|
|
public
|
|
public
|
|
@@ -630,33 +699,6 @@ type
|
|
property MinValue: Largeint read FMinValue write SetMinValue default 0;
|
|
property MinValue: Largeint read FMinValue write SetMinValue default 0;
|
|
end;
|
|
end;
|
|
|
|
|
|
-{ TSmallintField }
|
|
|
|
-
|
|
|
|
- TSmallintField = class(TLongintField)
|
|
|
|
- protected
|
|
|
|
- function GetDataSize: Integer; override;
|
|
|
|
- public
|
|
|
|
- constructor Create(AOwner: TComponent); override;
|
|
|
|
- end;
|
|
|
|
-
|
|
|
|
-{ TWordField }
|
|
|
|
-
|
|
|
|
- TWordField = class(TLongintField)
|
|
|
|
- protected
|
|
|
|
- function GetDataSize: Integer; override;
|
|
|
|
- public
|
|
|
|
- constructor Create(AOwner: TComponent); override;
|
|
|
|
- end;
|
|
|
|
-
|
|
|
|
-{ TAutoIncField }
|
|
|
|
-
|
|
|
|
- TAutoIncField = class(TLongintField)
|
|
|
|
- Protected
|
|
|
|
- procedure SetAsInteger(AValue: Longint); override;
|
|
|
|
- public
|
|
|
|
- constructor Create(AOwner: TComponent); override;
|
|
|
|
- end;
|
|
|
|
-
|
|
|
|
{ TFloatField }
|
|
{ TFloatField }
|
|
|
|
|
|
TFloatField = class(TNumericField)
|
|
TFloatField = class(TNumericField)
|
|
@@ -671,6 +713,7 @@ type
|
|
function GetAsBCD: TBCD; override;
|
|
function GetAsBCD: TBCD; override;
|
|
function GetAsFloat: Double; override;
|
|
function GetAsFloat: Double; override;
|
|
function GetAsLargeInt: LargeInt; override;
|
|
function GetAsLargeInt: LargeInt; override;
|
|
|
|
+ function GetAsLongWord: LongWord; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsInteger: Longint; override;
|
|
function GetAsVariant: variant; override;
|
|
function GetAsVariant: variant; override;
|
|
function GetAsString: string; override;
|
|
function GetAsString: string; override;
|
|
@@ -679,6 +722,7 @@ type
|
|
procedure SetAsBCD(const AValue: TBCD); override;
|
|
procedure SetAsBCD(const AValue: TBCD); override;
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsFloat(AValue: Double); override;
|
|
procedure SetAsLargeInt(AValue: LargeInt); override;
|
|
procedure SetAsLargeInt(AValue: LargeInt); override;
|
|
|
|
+ procedure SetAsLongWord(AValue: LongWord); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsInteger(AValue: Longint); override;
|
|
procedure SetAsString(const AValue: string); override;
|
|
procedure SetAsString(const AValue: string); override;
|
|
procedure SetVarValue(const AValue: Variant); override;
|
|
procedure SetVarValue(const AValue: Variant); override;
|
|
@@ -1199,6 +1243,7 @@ type
|
|
Function GetAsFloat: Double;
|
|
Function GetAsFloat: Double;
|
|
Function GetAsInteger: Longint;
|
|
Function GetAsInteger: Longint;
|
|
Function GetAsLargeInt: LargeInt;
|
|
Function GetAsLargeInt: LargeInt;
|
|
|
|
+ Function GetAsLongWord: LongWord;
|
|
Function GetAsMemo: string;
|
|
Function GetAsMemo: string;
|
|
Function GetAsString: string;
|
|
Function GetAsString: string;
|
|
Function GetAsAnsiString: AnsiString;
|
|
Function GetAsAnsiString: AnsiString;
|
|
@@ -1220,6 +1265,7 @@ type
|
|
Procedure SetAsFloat(const AValue: Double);
|
|
Procedure SetAsFloat(const AValue: Double);
|
|
Procedure SetAsInteger(AValue: Longint);
|
|
Procedure SetAsInteger(AValue: Longint);
|
|
Procedure SetAsLargeInt(AValue: LargeInt);
|
|
Procedure SetAsLargeInt(AValue: LargeInt);
|
|
|
|
+ Procedure SetAsLongWord(AValue: LongWord);
|
|
Procedure SetAsMemo(const AValue: string);
|
|
Procedure SetAsMemo(const AValue: string);
|
|
Procedure SetAsSmallInt(AValue: LongInt);
|
|
Procedure SetAsSmallInt(AValue: LongInt);
|
|
Procedure SetAsString(const AValue: string);
|
|
Procedure SetAsString(const AValue: string);
|
|
@@ -1258,6 +1304,7 @@ type
|
|
Property AsFloat : Double read GetAsFloat write SetAsFloat;
|
|
Property AsFloat : Double read GetAsFloat write SetAsFloat;
|
|
Property AsInteger : LongInt read GetAsInteger write SetAsInteger;
|
|
Property AsInteger : LongInt read GetAsInteger write SetAsInteger;
|
|
Property AsLargeInt : LargeInt read GetAsLargeInt write SetAsLargeInt;
|
|
Property AsLargeInt : LargeInt read GetAsLargeInt write SetAsLargeInt;
|
|
|
|
+ Property AsLongWord: LongWord read GetAsLongWord write SetAsLongWord;
|
|
Property AsMemo : string read GetAsMemo write SetAsMemo;
|
|
Property AsMemo : string read GetAsMemo write SetAsMemo;
|
|
Property AsSmallInt : LongInt read GetAsInteger write SetAsSmallInt;
|
|
Property AsSmallInt : LongInt read GetAsInteger write SetAsSmallInt;
|
|
Property AsString : string read GetAsString write SetAsString;
|
|
Property AsString : string read GetAsString write SetAsString;
|
|
@@ -2338,6 +2385,7 @@ end;
|
|
|
|
|
|
|
|
|
|
{ EUpdateError }
|
|
{ EUpdateError }
|
|
|
|
+
|
|
constructor EUpdateError.Create(NativeError, Context : String;
|
|
constructor EUpdateError.Create(NativeError, Context : String;
|
|
ErrCode, PrevError : integer; E: Exception);
|
|
ErrCode, PrevError : integer; E: Exception);
|
|
|
|
|