DT split cell question

Hi Guys,

Probably a stupid question to some…
In column B I have a cell which contains
A - AB
The split works perfectly.

row.item(1).ToString.Split("-"c)

What does the “c” represent in the above code ?

Mike

Hi @MikeC

Splits a string into substrings that are based on the characters in an array.

c -> using the period character as delimiter

Check out the docs

Regards
Gokul

1 Like

Hi @MikeC

Here “c” means “char”
It will convert String to character
Character refers to a single letter, number, space, punctuation mark or symbol that can be represented using a computer while String refers to a set of characters

1 Like

HI @MikeC

Split takes a part to ‘Array of character’ - after " " (c = .ToCharArray)

Check out the Link

Regards
Gokul

1 Like

c → using the period character as delimiter

Gotcha, makes sense really when I think about it lol.

Thanks to everyone :grinning:

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