Forum Discussion
Hi Gopal,
You can use project and project suite variables.
Also, you can declare a variable in the script unit outside all functions - in this case, the variable will have a global scope.- andr_simonovNew ContributorHello,
Are non-project global variables visible across different scripts?
I've created a global scope variable in one script,
Dim testVar : testVar = "test"
However, the following sub in another script does not see the variable:
Sub CheckVar
Log.Message testVar
End Sub
I've set up the project in such a way, that it runs CheckVar at start.
Hello Andrey,
It looks like you are talking about two script units. In order to call variables declared in another unit, you need to add the USEUNIT directive to the calling unit. For more information, refer to the Calling Routines and Variables Declared in Another Unit help topic.
Related Content
- 13 years ago
- 11 years ago
Recent Discussions
- 13 hours ago