You are not logged in.
Pages: 1
Hi,
I need to call a Setter in a TSQLRecord class but it's uncalled. Is it because of the TSQLRawBlob type ??
type
TSQLAttributesRec = class(TSQLRecord)
private
fObjID, fPackedObj, fSize, fUseCount, fUnpackedObj :Integer;
fExtension, fFilePath, fMimeType, fFName, fSha :RawUTF8;
fBlob :TSQLRawBlob;
procedure SetBlob(const Value:TSQLRawBlob);
published
property ObjID: Integer Read fObjID Write fObjID;
property PackedObj: Integer Read fPackedObj Write fPackedObj;
property Size: Integer Read fSize Write fSize;
property UseCount: Integer Read fUseCount Write fUseCount;
property UnpackedObj: Integer Read fUnpackedObj Write fUnpackedObj;
property Extension: RawUTF8 Read fExtension write fExtension;
property FilePath: RawUTF8 Read fFilePath write fFilePath;
property MimeType: RawUTF8 Read fMimeType write fMimeType;
property Name: RawUTF8 Read fFName write fFName;
property Sha: RawUTF8 Read fSha write fSha;
property Blob: TSQLRawBlob read fBlob write SetBlob;
public
end;
procedure TSQLAttributesRec.SetBlob(const Value:TSQLRawBlob);
begin
...
end;
I looked at this and I noticed that you used another class.
Last edited by Thomas-Acia (2015-09-14 12:38:44)
Delphi 2010 - Delphi XE5 (x64 Apps) - CodeTyphon - Typhon IDE v 5.7 - FPC 3.1.1 - mORMot 1.18
Windows 7 - VirtualBox : Linux Debian 8.5 Jessie 32 bits
Offline
It's solved, I use now
aAttributes.Blob := aAttributes.Blob;
to call it explicity.
Last edited by Thomas-Acia (2015-09-14 14:48:35)
Delphi 2010 - Delphi XE5 (x64 Apps) - CodeTyphon - Typhon IDE v 5.7 - FPC 3.1.1 - mORMot 1.18
Windows 7 - VirtualBox : Linux Debian 8.5 Jessie 32 bits
Offline
Pages: 1