Page 1 of 1

How can I include the "ref" word before the parameters?

Posted: Tue Apr 03, 2018 7:02 pm
by fernandavaldevino
I created a code and I need to include the "ref" word before the variable to inform that it is passed by reference. But I can't edit the method. How can I do it ?! The recording is a user code and the method is called

Code: Select all

Method(String user)
. I need to change to

Code: Select all

Method(ref String user)
.

:?: :|

Re: How can I include the "ref" word before the parameters?

Posted: Thu Apr 05, 2018 6:28 am
by Vega
It is unfortunately not possible to add parameters by reference with a Ranorex recording at this time. You may want to take a look at the below thread as there are some nice examples here:

https://www.ranorex.com/forum/how-can-i ... t7175.html

You could also always request it as a feature request:

https://www.ranorex.com/uservoice/