Problems with RunTimeError()

Blitz3D Forums/Blitz3D Beginners Area/Problems with RunTimeError()

I'm assuming Logo_Pointer is a global variable...

However, a more tidy version would be...
Function LoadBitmap(filename$)
	bitmap = LoadImage (filename$)
	If bitmap = 0 Then RuntimeError "Failed to locate & load "+filename
	Return bitmap
End Function
and then you'd use

logopointer = loadbitmap("klogo.png")

And they'd be no need for globals and the function is more flexible.