I have main.agc. At the top I include:
#include "GameFunctions.agc"
Further down the main.agc file I have a line inside a function:
dim arrGameBall[gBingo.ballCount]
The gBingo variable is declared in the second file, and so is the type definition:
type tBingo
Game
Theme as String
BallTheme as string
BackTheme as string
themeFont as string
'more...
endType
global gBingo as tBingo
This setup gives the message:
"gbingo has not been defined as a type in main.agc"
I've written it in correct case to show that the compiler has done
something with g
Bingo, and it's not just reiterating the code on the screen.