TIBCQuery BLOB Subtype detect

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Macma
Posts: 10
Joined: Thu 23 Oct 2008 09:02

TIBCQuery BLOB Subtype detect

Post by Macma » Fri 21 Feb 2014 10:00

Hi,

Is it possible to detect if BLOB filed generated by TIBCQuery results, are SubType 1 (text blob)?

Regards,
Macma

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: TIBCQuery BLOB Subtype detect

Post by Dimon » Fri 07 Mar 2014 12:03

You can detect SubType of a field in the following way:

Code: Select all

  SubType := TIBCFieldDesc(IBCQuery1.GetFieldDesc(FieldNo)).SQLSubType;

Also, you can set the TIBCConnection.Options.EnableMemos property to True, and then BLOB fields with subtype 1 will be mapped to TMemoField and TWideMemoField, and BLOB fields with subtype 0 - to TBlobField.

Macma
Posts: 10
Joined: Thu 23 Oct 2008 09:02

Re: TIBCQuery BLOB Subtype detect

Post by Macma » Fri 07 Mar 2014 12:20

Thank You for respond.

Best Regards,
Macma

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Re: TIBCQuery BLOB Subtype detect

Post by Dimon » Fri 07 Mar 2014 14:14

Feel free to contact us if you have any further questions.

Post Reply