Setting bits of an Integer to 1

What’s the easiest way to set all bits of an Integer to 1?

I’m porting some C# code to Xojo and a lot of the static properties of a class are set to ~0. This is shorthand in C# for performing a bitwise complement on 0, essentially setting all bits of the Integer to 1.

Would this be the same as defining the property as an Integer and it’s value to -1?

Bitwise.OnesComplement

Can’t use that to set a default property value though :frowning:

use -1.

Thought so. Thanks Christian.