Subject | Re: [IBO] Re: 4.9.5: Invalid Text in HexTextToBinary |
---|---|
Author | Jason Wharton |
Post date | 2009-09-23T19:47:41Z |
How about this:
procedure TIBODataset.SetBookmarkData( Buffer: TRecordBuffer; Data:
Pointer );
var
RecInfo: PIBORecInfo;
AHexText: AnsiString;
begin
RecInfo := PIBORecInfo(Buffer + FRecInfoOfs);
if Assigned( RecInfo.RecRowNode ) then
begin
AHexText := StrPas( PAnsiChar( TRecordBuffer( Data )));
HexTextToBinary( AHexText,
RecInfo.RecRowNode.KeyData,
BookmarkSize div 2 );
end;
end;
Thanks,
Jason Wharton
procedure TIBODataset.SetBookmarkData( Buffer: TRecordBuffer; Data:
Pointer );
var
RecInfo: PIBORecInfo;
AHexText: AnsiString;
begin
RecInfo := PIBORecInfo(Buffer + FRecInfoOfs);
if Assigned( RecInfo.RecRowNode ) then
begin
AHexText := StrPas( PAnsiChar( TRecordBuffer( Data )));
HexTextToBinary( AHexText,
RecInfo.RecRowNode.KeyData,
BookmarkSize div 2 );
end;
end;
Thanks,
Jason Wharton