[fpc-devel] Major problem with Move and Array of Int64
LacaK
lacak at zoznam.sk
Mon Sep 26 10:09:28 CEST 2011
Martin Schreiber wrote / napĂsal(a):
> On Friday 23 September 2011 14.00:07 Sergei Gorelkin wrote:
>
>> Recently strings behavior was changed, they are now codepage-aware. The
>> compiler can now implicitly convert strings from one encoding to another.
>> To handle non-string data, you should use RawByteString type, or better
>> yet non-string types like (dynamic) array of byte.
>>
>>
> So TBlobField.Value probably should be changed to array of byte
It seems, that Delphi XE does it in this way:
Value is of type TBlob and TBlob is byte array
http://docwiki.embarcadero.com/VCL/en/DB.TBlobField.Value
> and there
> should be a TField.AsByteArray property?
>
>
Better use compatible "AsBytes":
http://docwiki.embarcadero.com/VCL/en/DB.TField.AsBytes
http://docwiki.embarcadero.com/VCL/en/DB.TBlobField.GetAsBytes
-Laco.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110926/e3a6c72a/attachment.html>
More information about the fpc-devel
mailing list