UiPath - Convert List to Array

uipath convert list to array finesse talks
UiPath- Convert List to Array

During development, we often need to convert one datatype to another in order to proceed for further processing. Converting List to array is also no exception.

Let’s understand with example

Create required variables/arguments

in_StringList
out_StringArray
uipath-convert-list-to-array-create-variables-arguments
Create Variables/Arguments

Initialize List

in_StringList = New List(Of String)(New String(){"value1", "value2"})
uipath-convert-list-to-array-initialize-variables-arguments
Initialize List

Use code to convert List to Array

out_StringArray = in_StringList.ToArray
uipath-convert-list-to-array
Convert List to Array in UiPath

Comments

Popular posts from this blog

UiPath - Convert String to DateTime

Filter DataTable in UiPath Studio

UiPath - Kill Process for Current User