Working with Arrays - Designer - Foundation 23.2 - Foundation 23.2 - Ready - Hyland RPA - external

Hyland RPA Designer

Platform
Hyland RPA
Product
Designer
Release
Foundation 23.2
License
  • The following code initializes an array.

    { "Monday", "Tuesday", "Wednesday" }
  • The following code sets the second element in the array.

    myStringArray(1) = "Friday" 
  • The following code gets the first element in the array.

    myString = myStringArray(0)
  • The following code sorts an array in ascending order.

    Sort(myArray)
  • The following code calculates the sum of all array elements.

    Sum()
  • The following code retrieves the lowest value in the array.

    Min()
  • The following code retrieves the number of elements in the array.

    Length 
  • The following code calculates the average of all array elements.

    Average() 
  • The following code splits a string on a single character (here: every time when a comma is found); returns an array of strings (if the separator is not found, the original string will be returned).

    mySplittedArray = myString.Split(CChar(","))
  • The following code splits a string every time when a "Thursday" appears in the string; returns an array of strings (if the separator is not found, the original string will be returned).

    mySplittedArray = myString.Split(New String() { "Thursday" }, StringSplitOptions.None)