Whats wrong with this code?

BlitzPlus Forums/BlitzPlus Programming/Whats wrong with this code?

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.

Im new to canvas dunno what i did wrong

window = CreateWindow("Woot My Game", 10, 30, 640, 480 )
canvas = CreateCanvas(0, 0, ClientWidth(window), ClientHeight(window), window )
SetGadgetLayout canvas, 1, 1, 1, 1
			 cls
Global Image
Image = LoadImage("ship3.gif")

SetBuffer CanvasBuffer(canvas)
DrawImage Image, 0, 0
	 flip
Repeat
	event = WaitEvent (1)
Until event = $803