Page 1 of 1

Retaining the value of variables across Classes

Posted: Wed Feb 15, 2012 2:09 pm
by Anbu
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

Re: Retaining the value of variables across Classes

Posted: Wed Feb 15, 2012 3:24 pm
by Support Team
Hi,
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.
Sorry but I have no clue what you are trying to do. Would it be possible to explain your use case in more detail?

Regards,
Peter
Ranorex Team

Re: Retaining the value of variables across Classes

Posted: Thu Feb 16, 2012 7:53 am
by Anbu
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

Re: Retaining the value of variables across Classes

Posted: Thu Feb 16, 2012 1:37 pm
by Support Team
Hi,

Please take a look to following documentation
http://msdn.microsoft.com/en-us/library ... s.80).aspx

Regards,
Peter
Ranorex Team