Hello,
I need to create global method of user code that I can use within every recording module. It should look like this: Add New Action -> User Code -> choose my method. Is it possible?
Thank you.
How to create global method of user code
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: How to create global method of user code
Hello,
You can for instance create a C# Class with your method and call this method in each of your UserCode actions method.
You unfortunately can't directly call a method from another recording in your action table.
Regards,
Markus
Ranorex Support Team
You can for instance create a C# Class with your method and call this method in each of your UserCode actions method.
You unfortunately can't directly call a method from another recording in your action table.
Regards,
Markus
Ranorex Support Team
Re: How to create global method of user code
Hello,
I thing you can do this like explained in http://www.ranorex.com/forum/ghost-function-t3515.html
I thing you can do this like explained in http://www.ranorex.com/forum/ghost-function-t3515.html
SW
Re: How to create global method of user code
Thanks for your answer,
I found another simple way to resolve my problem. When I copying User Code line from action table to another recording module, all user code automatically copying in this module.
Regards,
Dmitry
I found another simple way to resolve my problem. When I copying User Code line from action table to another recording module, all user code automatically copying in this module.
Regards,
Dmitry
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: How to create global method of user code
Hi,
Right, forgot the way with the base class
.
Thanks serge for the suggestion
.
Regards,
Markus
Ranorex Support Team
Right, forgot the way with the base class

Thanks serge for the suggestion

Regards,
Markus
Ranorex Support Team