Page 1 of 1

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

Posted: Tue 23 Nov 2021 14:56
by upscene
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

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

Posted: Mon 29 Nov 2021 16:45
by ViktorV
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:

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

Posted: Tue 30 Nov 2021 07:50
by upscene
Hi Viktor,

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

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

Posted: Wed 01 Dec 2021 09:31
by ViktorV
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!