Hi,
The UiPath documentation is quite brief in InvokeCode activity description
But I suppose you could not declare Module inside InvokeCode, maybe not even Function, just plain .NET code
As pointed out by others, there’s no need for a module or function statement, and the Invoke Code activity supports neither. However, what you’re trying to do is already part of .NET - no need to reinvent the wheel:
Hope you’re doing well. I think I had the same problem as yours and this is how I figured it out : using Lambda Expressions (please see example here VB.NET Lambda Expressions - Dot Net Perls).
So, to make your FindMax function in UiPath I followed the following steps:
Create the variables in UiPath
Add the Invoke code activity in a Sequence and edit arguments to create a “bridge” with previously created variables
Hi @Masire
I am faceing the problem that use System.Drawing.Point type in the invoke code activity,but It will be occur errors , do you have solution?
Like the below post
I found the docs right now!
But there is no System.Drawing.Point.My God
How can I do it?