Ha, after hitting the Post button, I found the solution!
So, declaring a variable using the Global keyword in the main.agc, that variable were global all around my project, including functions.
However, on contrary another post here stated, declaring the variable without the Global in the main.agc doesn't make that variable global for all modules in my project.
So, to declare a global variable, I believe we have to:
- Declare it using the Global keyword
- Declare it in the main.agc
Other than that, the variable is not global to the project.
Cheers