I'm assuming Logo_Pointer is a global variable...
However, a more tidy version would be...
logopointer = loadbitmap("klogo.png")
And they'd be no need for globals and the function is more flexible.
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 Functionand then you'd use
logopointer = loadbitmap("klogo.png")
And they'd be no need for globals and the function is more flexible.