Hi is there a way store the variables globally. I mean to say If i declare a variable I want access it in all functions. Presently to access the values in different functions Iam writting below code.Plz suggest is this Correct method
There are no global variables, but there is a "global m scope".... Meaning that the scope of m that is not in an object scope is shared by all static functions that are not part of an object. This is the scope of the Main() function.
Function Main() m.variable = 100 ..... End Function
Function One() m.variable = 1 End Function
Function Two() print m.variable 'output is 1 End Function
If this is not working for you, check that One() and Two() are not methods of different objects....