Andrew Gable
Programmer
Hi everyone,
I have just started to develop once again in qbasic and for the love of everything I can not remember how to share a variable between modules
Before the main function runs I have declared
Common shared TerminalNumber as string
But I can not seem to access it from another function
Example
Public sub PrintTerminalNumber
Print TerminalNumber
End sub
How do I allow the printTerminalNumber sub access to the TerminalNumber?
I even have tried to declare it like
public sub PrintTermialNumber (byval termID string)
And the. Run call PrintTerminalNumber (TerminalNumber) but it print a blank entry
I would appreciate any help or example
Code on this
Thanks
Andy
I have just started to develop once again in qbasic and for the love of everything I can not remember how to share a variable between modules
Before the main function runs I have declared
Common shared TerminalNumber as string
But I can not seem to access it from another function
Example
Public sub PrintTerminalNumber
Print TerminalNumber
End sub
How do I allow the printTerminalNumber sub access to the TerminalNumber?
I even have tried to declare it like
public sub PrintTermialNumber (byval termID string)
And the. Run call PrintTerminalNumber (TerminalNumber) but it print a blank entry
I would appreciate any help or example
Code on this
Thanks
Andy