Explanation

dmy.Split({" “},StringSplitOptions.None)(1)+dmy.Split({” “},StringSplitOptions.None)(2)+dmy.Split({” "},StringSplitOptions.None)(3)

Can any one explain me this function how it works

Hello @soumi_soumiya

Let’s assume that dmy = "Welcome to UiPath Community"
dmy.Split({" “},StringSplitOptions.None) will split the string into an array: {“Welcome”, “to”, “UiPath”, “Community”}

So…
dmy.Split({" “},StringSplitOptions.None)(1) is equal to “to” since it is of index 1.
dmy.Split({" “},StringSplitOptions.None)(2) is equal to “UiPath” and
dmy.Split({" “},StringSplitOptions.None)(3) is equal to “Community

Then the whole line:
dmy.Split({" “},StringSplitOptions.None)(1)+dmy.Split({” “},StringSplitOptions.None)(2)+dmy.Split({” "},StringSplitOptions.None)(3)
is equal to “toUiPathCommunity” because of concatenation.

Hope this is clear :slight_smile:

Thanks and regards,
Despi

11 Likes

Thanks for your reply

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