Stumped on this

BlitzPlus Forums/BlitzPlus Beginners Area/Stumped on this

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.

Maybe this helps. *run it in debugmode*

window=CreateWindow("y00!",0,0,640,480)
 DebugLog "intvalue of window = "+window

button=CreateButton("meep",0,0,64,24,window)
 DebugLog "intvalue of button = "+button

slider=CreateSlider(0,40,64,24,window,1)
 DebugLog "intvalue of slider = "+slider

canvas=CreateCanvas(40,90,64,24,window)
 DebugLog "intvalue of canvas = "+canvas

bank=CreateBank(16)
 DebugLog "intvalue of bank = "+bank


PokeInt bank,0 ,window
PokeInt bank,4 ,button
PokeInt bank,8 ,slider
PokeInt bank,12,canvas

GoToAFunction(bank)
Notify "done!"
End

Function GoToAFunction(anybank)
	window=PeekInt(anybank,0 )
	button=PeekInt(anybank,4 )
	slider=PeekInt(anybank,8 )
	canvas=PeekInt(anybank,12)
	
	DebugLog "woops, we're in a function now!"

	DebugLog "intvalue of window = "+window
	DebugLog "intvalue of button = "+button
	DebugLog "intvalue of slider = "+slider
	DebugLog "intvalue of canvas = "+canvas
	DebugLog "intvalue of bank = "+anybank
	
End Function