Hi,
i need some help about using swap() functions
i am using this code:
var
x: integer;
begin
x := $11223344;
x := swap(x);
edit1.text := inttohex(x);
end;
this code is working fin its swap like this: '22114433' but if i pud/add byte on like this:
var
x: integer;
begin
x := $1122334455667788;
x := swap(x);
edit1.text := inttohex(x);
end;
it does not not, even i use the var longint. any idea what should i do? my expected result is: '2211443366558877'
Thanks
BR,