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

Ask general questions here.
fernandavaldevino
Posts: 1
Joined: Tue Apr 03, 2018 6:55 pm

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

Post by fernandavaldevino » Tue Apr 03, 2018 7:02 pm

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)
.

:?: :|

User avatar
Vega
Posts: 110
Joined: Mon Jul 11, 2016 2:15 pm

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

Post by Vega » Thu Apr 05, 2018 6:28 am

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/