Hi All,
We want to retain the value of a variable from one class to another using VB.net code. Please could you advice us to handle this situation.
Thanks
Anbu K
Retaining the value of variables across Classes
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Retaining the value of variables across Classes
Hi,
Regards,
Peter
Ranorex Team
Sorry but I have no clue what you are trying to do. Would it be possible to explain your use case in more detail?Anbu wrote:We want to retain the value of a variable from one class to another using VB.net code. Please could you advice us to handle this situation.
Regards,
Peter
Ranorex Team
Re: Retaining the value of variables across Classes
Peter,
I am using a variable to store a value in a class1 and I would like to use the value of the variable in class2 without calling class1. I have tried static and few other options, however nothing works. Is there any other way we can use the variable with the value assgined in class1?
Thank you,
Anbu K
I am using a variable to store a value in a class1 and I would like to use the value of the variable in class2 without calling class1. I have tried static and few other options, however nothing works. Is there any other way we can use the variable with the value assgined in class1?
Thank you,
Anbu K
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Retaining the value of variables across Classes
Hi,
Please take a look to following documentation
http://msdn.microsoft.com/en-us/library ... s.80).aspx
Regards,
Peter
Ranorex Team
Please take a look to following documentation
http://msdn.microsoft.com/en-us/library ... s.80).aspx
Regards,
Peter
Ranorex Team