complement 2

Hello everyone. I’m new to Xojo I created a “complement 2” binary encoding and wrote this code:
var=(&hff ((uint16)&h7d << 8) ((uint32)&hb0 << 16)) >> 4U
this code throws an error and I can’t move forward.
I hope there is someone who can give me a hand
Thank you

Have you read about creating and using variables in Xojo?

I’m assuming the error is a syntax error. Could you tell us what the error says?

Xojo doesn’t support << for instance. You’ll need the Bitwise.Shift method for that.

1 Like

Thanks for the reply, the problem does not exist in the variables that have been declared

Thanks for the reply, I’ll start studying the Bitwise command carefully

var=

This does not work in Xojo. Please learn how to declare variables.