[UiPath] How to use variable as delay duration (convert String to TimeSpan)

Say you want to use a variable as delay duration instead of hardcoding the time span (ie. 00:00:05), how do you convert a string variable into a proper duration variable?

Duration field accepts values with data type TimeSpan.
To convert a String to TimeSpan, use...


...where delay is a string variable containing the delay duration in seconds. In this example, it's 10 seconds. 

That's it! Hope this helps! 


[UiPath, VB.net] How to split string into characters

I was looking for ways to split a string into characters and found this .net string method that works perfectly.

Say you want to split the word elephant into individual characters and display it, just use the method ToCharArray() and it will be converted the way you want it!

Take note to change the TypeArgument of the For Each loop to System.Char

Alternatively, you may also access each character in the string by its index number.

"elephant"(0) returns "e"
"elephant"(1) returns "l"
"elephant"(2) returns "e"
"elephant"(7) returns "t"

You get the drill!


How to install Active Directory on Windows 10

On your Desktop, Start >> Settings >> Apps >> Apps & Features >> Optional features >> Add feature

Look for RSAT: Active Directory Domain Services and Lightweight Directory Services Tool

If it tells you of any dependency, install that first. Here it shows I need to install RSAT: Server Manager first so let's do that

After installation you should have Active Directory apps installed on your machine

Hope this helps!