+1 for BMacZero's explanation, it's something that most of us take for granted but is important for newcomers to AppGameKit to know.
In this example,
myImage will be cleared up automatically, when the
function ends:
DoSomething()
End
function DoSomething()
myImage as integer
myImage = LoadImage("image.jpg")
endfunction
In this example,
myImage will be cleared up automatically, when the
program ends. You cannot delete global variables, you can only reset their value to zero or nothing.:
global myImage as Integer
DoSomething()
End
function DoSomething()
myImage = LoadImage("image.jpg")
endfunction
Quidquid latine dictum sit, altum sonatur