access variable using pointer

BlitzMax Forums/BlitzMax Programming/access variable using pointer

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.

This works. Don't know if there's a better way.

SuperStrict

Local a:Int = 123

Local bk:TBank = CreateStaticBank(Varptr(a),4)
PokeInt bk,0,125
DebugLog a