Formatting CHAR(16), OCTETS without { .. }

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Formatting CHAR(16), OCTETS without { .. }

Post by upscene » Tue 23 Nov 2021 14:56

Hi,

I've added a DataTypeMap rule as per your documentation:

Code: Select all

DataTypeMap.AddDBTypeRule(ibcCharBin, 16, 16, ftGuid)
But this formats the output with curly brackets. Is it possible to add a format that removes the curly brackets?

The AddDBTypeRule method takes a Format parameter but I can't figure out how it's supposed to be used.

With regards,

Martijn

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Formatting CHAR(16), OCTETS without { .. }

Post by ViktorV » Mon 29 Nov 2021 16:45

Hi Martijn!

Thank you for contacting Devart and for your inquiry!
We will consider adding this functionality in the future.
You can create a feature request on our user voice forum: https://devart.uservoice.com/forums/104 ... components to speed up this feature implementation:

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Re: Formatting CHAR(16), OCTETS without { .. }

Post by upscene » Tue 30 Nov 2021 07:50

Hi Viktor,

How does the Formatting-parameter work? Can't find anything in the documentation?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Formatting CHAR(16), OCTETS without { .. }

Post by ViktorV » Wed 01 Dec 2021 09:31

Hi Martijn!

The Format parameter in the AddDBTypeRule method allows you to set the string format only for date, time and datetime types.

Should you have any questions, do not hesitate to ask!

Post Reply