- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know it is possible to access a variable inside a module using the following syntax
MODULENAME::VariableName
i.e adding a watch throught the command window in VS would read Debug.AddWatch MODULENAME::VariableName.
However is it possible to access a variable defined/declared inside a subroutine which in turn is inside a module? For instance
MODULENAME::SubroutineName::VariableInsideSubroutineName
I already tried the above syntax but it doesn't work. Is there an alternate syntax to accomplish this?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, that is only possible if the subroutine is actually active. Otherwise the variable may not even exist. I am not aware of any syntax that makes you access SAVEd variables - they would be persistent, so in principle it ought to be possible to access them.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page