How to get the Int value of a Byte Ptr ?

BlitzMax Forums/BlitzMax Programming/How to get the Int value of a Byte Ptr ?

Brucey(Posted 2007) [#1]
I seem to have had a blonde moment over the weekend, and was simply unable to get an integer representation of a byte ptr...

I have :

Field handle:Byte Ptr

How do I get the integer value of that pointer???

:-/


EOF(Posted 2007) [#2]
Like this?
DebugLog Int(handle)



SculptureOfSoul(Posted 2007) [#3]
If you are looking for the address of the byte pointer it's as so:

global address:int
address = varptr handle



Brucey(Posted 2007) [#4]
Int(handle).... it didn't occur to me to try casting it straight to an int...

Thanks :-)