|
@@ -34,6 +34,8 @@ const
|
|
YesNoChars : Array[Boolean] of char = ('Y','N');
|
|
YesNoChars : Array[Boolean] of char = ('Y','N');
|
|
|
|
|
|
type
|
|
type
|
|
|
|
+{LargeInt}
|
|
|
|
+ LargeInt = Int64;
|
|
|
|
|
|
{ Auxiliary type }
|
|
{ Auxiliary type }
|
|
TStringFieldBuffer = Array[0..dsMaxStringSize] of Char;
|
|
TStringFieldBuffer = Array[0..dsMaxStringSize] of Char;
|
|
@@ -69,10 +71,20 @@ type
|
|
|
|
|
|
TFieldClass = class of TField;
|
|
TFieldClass = class of TField;
|
|
|
|
|
|
|
|
+{
|
|
TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, ftWord,
|
|
TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, ftWord,
|
|
ftBoolean, ftFloat, ftDate, ftTime, ftDateTime,
|
|
ftBoolean, ftFloat, ftDate, ftTime, ftDateTime,
|
|
ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic,
|
|
ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic,
|
|
ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor);
|
|
ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+ TFieldType = (ftUnknown, ftString, ftSmallint, ftInteger, ftWord,
|
|
|
|
+ ftBoolean, ftFloat, ftCurrency, ftBCD, ftDate, ftTime, ftDateTime,
|
|
|
|
+ ftBytes, ftVarBytes, ftAutoInc, ftBlob, ftMemo, ftGraphic, ftFmtMemo,
|
|
|
|
+ ftParadoxOle, ftDBaseOle, ftTypedBinary, ftCursor, ftFixedChar,
|
|
|
|
+ ftWideString, ftLargeint, ftADT, ftArray, ftReference,
|
|
|
|
+ ftDataSet, ftOraBlob, ftOraClob, ftVariant, ftInterface,
|
|
|
|
+ ftIDispatch, ftGuid, ftTimeStamp, ftFMTBcd);
|
|
|
|
|
|
TFieldDef = class(TComponent)
|
|
TFieldDef = class(TComponent)
|
|
Private
|
|
Private
|
|
@@ -785,6 +797,7 @@ type
|
|
Procedure DoInternalClose;
|
|
Procedure DoInternalClose;
|
|
Function GetBuffer (Index : longint) : Pchar;
|
|
Function GetBuffer (Index : longint) : Pchar;
|
|
Function GetField (Index : Longint) : TField;
|
|
Function GetField (Index : Longint) : TField;
|
|
|
|
+ procedure RecalcBufListSize;
|
|
Procedure RegisterDataSource(ADatasource : TDataSource);
|
|
Procedure RegisterDataSource(ADatasource : TDataSource);
|
|
Procedure RemoveField (Field : TField);
|
|
Procedure RemoveField (Field : TField);
|
|
Procedure SetActive (Value : Boolean);
|
|
Procedure SetActive (Value : Boolean);
|
|
@@ -1007,7 +1020,8 @@ type
|
|
Function CalcFirstRecord(Index : Integer) : Integer;
|
|
Function CalcFirstRecord(Index : Integer) : Integer;
|
|
Procedure CheckActiveAndEditing;
|
|
Procedure CheckActiveAndEditing;
|
|
Function GetDataset : TDataset;
|
|
Function GetDataset : TDataset;
|
|
- procedure SetDataSource(Value : TDatasource);
|
|
|
|
|
|
+ procedure SetActive(AActive: Boolean);
|
|
|
|
+ procedure SetDataSource(Value: TDataSource);
|
|
Procedure SetReadOnly(Value : Boolean);
|
|
Procedure SetReadOnly(Value : Boolean);
|
|
protected
|
|
protected
|
|
procedure ActiveChanged; virtual;
|
|
procedure ActiveChanged; virtual;
|
|
@@ -1187,7 +1201,47 @@ type
|
|
|
|
|
|
Const
|
|
Const
|
|
Fieldtypenames : Array [TFieldType] of String[15] =
|
|
Fieldtypenames : Array [TFieldType] of String[15] =
|
|
- ( 'Unknown',
|
|
|
|
|
|
+ (
|
|
|
|
+ 'Unknown',
|
|
|
|
+ 'String',
|
|
|
|
+ 'Smallint',
|
|
|
|
+ 'Integer',
|
|
|
|
+ 'Word',
|
|
|
|
+ 'Boolean',
|
|
|
|
+ 'Float',
|
|
|
|
+ 'Currency',
|
|
|
|
+ 'BCD',
|
|
|
|
+ 'Date',
|
|
|
|
+ 'Time',
|
|
|
|
+ 'DateTime',
|
|
|
|
+ 'Bytes',
|
|
|
|
+ 'VarBytes',
|
|
|
|
+ 'AutoInc',
|
|
|
|
+ 'Blob',
|
|
|
|
+ 'Memo',
|
|
|
|
+ 'Graphic',
|
|
|
|
+ 'FmtMemo',
|
|
|
|
+ 'ParadoxOle',
|
|
|
|
+ 'DBaseOle',
|
|
|
|
+ 'TypedBinary',
|
|
|
|
+ 'Cursor',
|
|
|
|
+ 'FixedChar',
|
|
|
|
+ 'WideString',
|
|
|
|
+ 'Largeint',
|
|
|
|
+ 'ADT',
|
|
|
|
+ 'Array',
|
|
|
|
+ 'Reference',
|
|
|
|
+ 'DataSet',
|
|
|
|
+ 'OraBlob',
|
|
|
|
+ 'OraClob',
|
|
|
|
+ 'Variant',
|
|
|
|
+ 'Interface',
|
|
|
|
+ 'IDispatch',
|
|
|
|
+ 'Guid',
|
|
|
|
+ 'TimeStamp',
|
|
|
|
+ 'FMTBcd'
|
|
|
|
+ );
|
|
|
|
+ { 'Unknown',
|
|
'String',
|
|
'String',
|
|
'Smallint',
|
|
'Smallint',
|
|
'Integer',
|
|
'Integer',
|
|
@@ -1208,7 +1262,7 @@ Const
|
|
'DBaseOle',
|
|
'DBaseOle',
|
|
'TypedBinary',
|
|
'TypedBinary',
|
|
'Cursor'
|
|
'Cursor'
|
|
- );
|
|
|
|
|
|
+ );}
|
|
|
|
|
|
dsEditModes = [dsEdit, dsInsert];
|
|
dsEditModes = [dsEdit, dsInsert];
|
|
{ Auxiliary functions }
|
|
{ Auxiliary functions }
|
|
@@ -1403,7 +1457,10 @@ end.
|
|
|
|
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.4 2000-12-24 12:45:19 peter
|
|
|
|
|
|
+ Revision 1.5 2001-01-18 22:10:07 michael
|
|
|
|
+ + Fixes to make dbase working merged from fixbranch
|
|
|
|
+
|
|
|
|
+ Revision 1.4 2000/12/24 12:45:19 peter
|
|
* merges from 1.0.x branch
|
|
* merges from 1.0.x branch
|
|
|
|
|
|
Revision 1.3 2000/09/02 09:36:36 sg
|
|
Revision 1.3 2000/09/02 09:36:36 sg
|