Using statement in uipath

Hi, I’m writing a code to pull winscp data using uipath, and in the midst of converting vb I encountered a snag

using xx as new xx
//code
end using

or

using (xxx){ //code }
any such equivalent for this in uipath activity?

Also, are there ways to put statements without expecting a return value like e.g assign?

2 Likes

Came across your post looking how to implement using statement in UiPath. Still haven’t found it.

To your other question, you can use Invoke Method activity to execute certain statements. If you are dealing with collections, you can still use Invoke Method, but there are some activates which make it easier to add, clear, remove etc. from a collection. Search for ‘Collection’ in Activities panel to find those activities.

1 Like

Hi,

InvokeCode activity supports using statement, FYI.

Regards,

1 Like

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