Byte Ptr

BlitzMax Forums/BlitzMax Beginners Area/Byte Ptr

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Just tested this therory,
Type RECT
	Field l%,r%
End Type

Local myrect:RECT=New RECT
myrect.l=123

Local bp1:Byte Ptr=Byte Ptr(myrect)
Local bp2:Byte Ptr=Byte Ptr(myrect.l)

Print Int(bp1)
Print Int(bp2)

Results:

bp1 = address of myrect structure
bp2 = value stored at myrect.l