.split(" "c) - what is 'c'?


#1

In the split function, I understand " " (space is the delimiter), but what is ‘c’?


#2

Hi,
Splits a string into substrings that are based on the characters in an array.
Example1
Example2


#3

Hi,

Please follow the below tutorial, on split and join string operations.

thanks,
Karthik.


#4

my apologies but I still do not understand what the c means, is it meant to tell the computer that the variables are characters?


#5

.Split argument needs “Char”(Character) type, not string type.
" "c means “Use this space as a char, not as string” in .NET grammer.
(This c is capital of “char”)

As the another case, in UiPath, I often use “D” for define Decimal Type.
For example, 1.01D means “this value defines as Decimal type, not Double type”.
(To explain difference between Decimal and Double is hard work, you can understand “Double is faster at caliculating, Decimal is slower but more accurate in decimal system”.)


#6

Thank you Honoka!