Page 1 of 1

UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 9:17 am
by loonquawl
Hi.
Running an extended Trial version 7.1.1. of Ranorex on Win7 64, I have a UserCodeCollection, that contains a UserCodeMethod with four parameters.
When i use this method as an action in a recording, only the first three params are realized as fields (see screenshots).
I replicated this with more UserCodeMethods, more than three params will not be shown in Recording-view.

Is this a bug or a feature?

Re: UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 9:35 am
by odklizec
Hi,

It's a feature. There is simply no room in UI for more params. You need to use button [Args] to access the rest of params.

Re: UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 10:44 am
by loonquawl
odklizec wrote:There is simply no room in UI for more
The empty space to the right of "Comment" might be called room :lol:

But ok, as long as it's accessible. Thx!

Re: UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 11:56 am
by odklizec
Well, I believe the UI is designed for typically used screen resolution, which may be much lower than yours? ;) But I agree it could be done dynamically, e.g. based of the actual resolution and available space.

BTW, there is already a User Voice created for this, so feel free to vote for this idea here:
https://uservoice.ranorex.com/forums/15 ... de-methods

Re: UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 12:31 pm
by loonquawl
Voiced. thx!

Re: UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 1:27 pm
by Vaughan.Douglas
You'll also notice any return value from a usercode method is only accessible via the properties window. So that's neat. :roll:

Re: UserCodeMethods only shown with three of four params

Posted: Fri Dec 01, 2017 4:10 pm
by loonquawl
return value from a usercode method is only accessible via the properties window
Exactly what i was looking for just now! Keep talking, you are on a streak! :idea:

Re: UserCodeMethods only shown with three of four params

Posted: Mon Dec 04, 2017 1:31 pm
by Vaughan.Douglas
loonquawl wrote:
return value from a usercode method is only accessible via the properties window
Exactly what i was looking for just now! Keep talking, you are on a streak! :idea:
it was the obvious next question. Since the answer seems a bit inconsistent, I figured I'd preempt it.