Which data types in user code?

Best practices, code snippets for common functionality, examples, and guidelines.
HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

Which data types in user code?

Post by HansSchl » Mon Feb 01, 2021 2:26 pm

Hi,

which are the data types that I can use in the declaration of a user code action? I figured out some, like int, string, RepoItemInfo, bool, and I also found some that cannot be used, like double. Is there a complete list? Can the list be extended at run time?

Thank you
Hans

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Which data types in user code?

Post by odklizec » Thu May 06, 2021 7:05 am

Hi,

A bit old post, but I think it's still relevant and as such should be answered ;) Here is a complete list of User Code method arguments...
Arguments.png
These should be recognized if used in Recordings.
You do not have the required permissions to view the files attached to this post.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

HansSchl
Posts: 143
Joined: Wed Sep 19, 2018 10:05 am

Re: Which data types in user code?

Post by HansSchl » Thu May 06, 2021 8:36 am

Thanks, that list is longer than I had thought. It contains "Double" - I'll have to re-check that (in my original post I wrote that double doesn't work bu maybe the problem was elsewhere).

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Which data types in user code?

Post by odklizec » Thu May 06, 2021 8:49 am

Hi,

Yeah, there is always a possibility of undiscovered Ranorex bug :)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration