Page 1 of 1

OCTETS as GUID

Posted: Fri 06 Oct 2017 07:38
by upscene
Hi,

Is it possible to map CHAR(16?) OCTETS to a GUID string? If so, how?

Mind you, I have no knowledge over the field name. Can this be done using the data type map rules? If so, how, I haven't been able to figure it out?

With regards,

Martijn Tonies

Re: OCTETS as GUID

Posted: Fri 06 Oct 2017 09:09
by ViktorV
To solve the task, you can use the following mapping rule:

Code: Select all

  IBCQuery.DataTypeMap.AddDBTypeRule(ibcCharBin, 16, 16, ftGuid);
Note that to run this code, you should add the IBCDataTypeMap unit to the USES clause of your unit.