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
OCTETS as GUID
Re: OCTETS as GUID
To solve the task, you can use the following mapping rule:
Note that to run this code, you should add the IBCDataTypeMap unit to the USES clause of your unit.
Code: Select all
IBCQuery.DataTypeMap.AddDBTypeRule(ibcCharBin, 16, 16, ftGuid);