In beginners Guide in page 273 talks about sabs and says: Global Variable cannot be a parameter. What is the meaning of this? We cannot set a name of one parameter of a sub identical to a name of a global variable? Or we cannot pass a global variable to a sub?
I try to pass a global variable to a sub and gives me no error. Looks like i works ok. When i try to set a name of a parameter with the name of a global variable the it give the error message.
So, I believe the first one is correct but the statement in the beginnersguide belongs to a section with title : Calling a sub. And the example says:
so say that "player" is a Global variable, you cannot say: PlayCard(player). Instead you have to say:
i=player: PlayCard(i)
This looks like a calling of sub and not like declaring.
But if we cannot pass a global variable to a sub then the globalvariables are unusable and usless.
Thanks.