Forum Discussion
praveensqa
13 years agoContributor
Hi Margaret Abramova,
I want to access all the variables of the Sub/Functions of one unit to another Unit.
Unit is Te2
'USEUNIT Te3
Sub pro
dim va
Va=10
End Sub
Unit is Te3
'USEUNIT Te2
Function Te3
Te2.pro// for calling Te2 Pro--- Fine.
\\ Here i need to get the Va variable value from unit Te2
if i type Te2.Va--- Ok, but while execute the test i am getting object doesn't support the Exception is coming.
How i will get Va value in this unit. is there any method?
End Function
Helen Kosova given one solution in my previous thread(Access Global Variables).
Suppose if i have Object of that Unit, using that i object i can access those variable like Object(Te2).Va. That is the reason i posted this thread.
Regards,
Praveen
Related Content
- 8 years agoWestManBruce
- 2 years agohinabatooq
- 8 months agosinis
- 2 years agobknutson
- 2 years agoTestQA1
Recent Discussions
- 2 hours agoSvetaG