testing for the MSB is very simple...
Just type cast with the appropriate integer...
I don't know what the type is that is being tested but I can assume for now it to be a integer which is a 32 bit..
If Integer(My32BitSomething) < 0 Then …
or what ever type that fits the bill..
shortInt, SmallInt, Integer, Int64 etc..
and if that is not abstract you can do the logic stuff...
If (SomewhatEver and $80000000)<> 0 Then …
etc
doing bit testing is simply if you know which bit position you need...
I prefer doing this over using some provided helper that bloats things.