|
@@ -474,7 +474,7 @@ end;
|
|
function TField.GetAsString: string;
|
|
function TField.GetAsString: string;
|
|
|
|
|
|
begin
|
|
begin
|
|
- Raise AccessError(SString);
|
|
|
|
|
|
+ Result := GetClassDesc;
|
|
end;
|
|
end;
|
|
|
|
|
|
function TField.GetOldValue: Variant;
|
|
function TField.GetOldValue: Variant;
|
|
@@ -545,6 +545,16 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TField.GetClassDesc: String;
|
|
|
|
+var ClassN : string;
|
|
|
|
+begin
|
|
|
|
+ ClassN := copy(ClassName,2,pos('Field',ClassName)-2);
|
|
|
|
+ if isNull then
|
|
|
|
+ result := '(' + LowerCase(ClassN) + ')'
|
|
|
|
+ else
|
|
|
|
+ result := '(' + UpperCase(ClassN) + ')';
|
|
|
|
+end;
|
|
|
|
+
|
|
function TField.GetData(Buffer: Pointer): Boolean;
|
|
function TField.GetData(Buffer: Pointer): Boolean;
|
|
|
|
|
|
begin
|
|
begin
|
|
@@ -637,7 +647,7 @@ begin
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure TField.SetIndex(AValue: Integer);
|
|
|
|
|
|
+procedure TField.SetIndex(const AValue: Integer);
|
|
begin
|
|
begin
|
|
if FFields <> nil then FFields.SetFieldIndex(Self, AValue)
|
|
if FFields <> nil then FFields.SetFieldIndex(Self, AValue)
|
|
end;
|
|
end;
|
|
@@ -2228,7 +2238,7 @@ begin
|
|
Free
|
|
Free
|
|
end
|
|
end
|
|
else
|
|
else
|
|
- Result := '(blob)';
|
|
|
|
|
|
+ Result := '';
|
|
end;
|
|
end;
|
|
|
|
|
|
function TBlobField.GetAsVariant: Variant;
|
|
function TBlobField.GetAsVariant: Variant;
|
|
@@ -2280,7 +2290,7 @@ end;
|
|
procedure TBlobField.GetText(var TheText: string; ADisplayText: Boolean);
|
|
procedure TBlobField.GetText(var TheText: string; ADisplayText: Boolean);
|
|
|
|
|
|
begin
|
|
begin
|
|
- TheText:=GetAsString;
|
|
|
|
|
|
+ TheText:=inherited GetAsString;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|