I treyed to make a label, for example PIPPO: and then put goto code like this:
Code: Select all
START:
bla bla bla code
Goto PIPPO
bla bla bla code
PIPPO:
CanvasGadget(#GADGET_Canvas, 10, 10, 380, 380, #PB_Canvas_ClipMouse | #PB_Canvas_Border)
If StartDrawing(ImageOutput(#IMAGE_Color))
Box(0, 0, 35, 35, CurrentColor)
StopDrawing()
EndIf
Goto START
The same for Gosub.
Code: Select all
bla bla bla code
Gosub PIPPO
bla bla bla code
PIPPO:
CanvasGadget(#GADGET_Canvas, 10, 10, 380, 380, #PB_Canvas_ClipMouse | #PB_Canvas_Border)
If StartDrawing(ImageOutput(#IMAGE_Color))
Box(0, 0, 35, 35, CurrentColor)
StopDrawing()
EndIf
return
The Compiler says "Syntax Error"! Why?
Can Somebody Help Me?
Thanks A lot.
Lestroso