var
HexStr:string;
BinStr:string;
BufSize:Integer;
I:Integer;
begin
HexStr:='0123456789ABCDEF';
BufSize:=(Length(HexStr)+1) div 2;
SetLength(BinStr,BufSize);
HexToBin(PChar(HexStr),PChar(BinStr),BufSize);
for I:=1 to BufSize do
begin
ShowMessage(IntToStr(Ord(BinStr)));
end;
end;