Code Editor in Uipath

Hi all,

I’m learning Uipath using studio and i study on Vb.Net. I’m trying to some codes which i’m using invoke code but it does not work. The code works online compiler. What should i do or what i did mistake or whereelse?

Here is my code :

Class MyClass_1
	Shared Sub Main()
	End Sub
End Class

Class MyClass_2
	Public Shared Function square(ByVal number As Integer) As Integer
		Return number * number
	End Function
End Class

Thanks.

1 Like

Hi,

We can consider InvokeCode activity is like single static method.
So, basically we cannot define class inside it. Please also check sample of the following document.

Regards,

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.