# DT split cell question

**URL:** <https://forum.uipath.com/t/dt-split-cell-question/474147>\
**Category:** Help\
**Tags:** studio\
**Created:** [September 19, 2022, 1:33pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147 "2022-09-19T13:33:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeC](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mikec/32/176649_2.png) [@MikeC](https://forum.uipath.com/u/MikeC)\
**Post date:** [September 19, 2022, 1:33pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147/1 "2022-09-19T13:33:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gokul001](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul001/32/462734_2.png) [@Gokul001](https://forum.uipath.com/u/Gokul001)\
**Post date:** [September 19, 2022, 1:37pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147/2 "2022-09-19T13:37:27Z")

</div>

Hi @MikeC

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

```auto
c -> using the period character as delimiter

```

Check out the docs

> **[String.Split Method (System)](https://learn.microsoft.com/en-us/dotnet/api/system.string.split?redirectedfrom=MSDN&view=net-6.0#System_String_Split_System_Char___)**
>
> Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array.

Regards  
Gokul

---

<div class="post-metadata">

**Author:** ![Gokul\_Jayakumar](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul_jayakumar/32/425938_2.png) [@Gokul\_Jayakumar](https://forum.uipath.com/u/Gokul_Jayakumar)\
**Post date:** [September 19, 2022, 1:39pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147/3 "2022-09-19T13:39:07Z")

</div>

Hi @MikeC

> [@MikeC](#):
>
> row.item(1).ToString.Split("-"c)

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**

---

<div class="post-metadata">

**Author:** ![Gokul001](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul001/32/462734_2.png) [@Gokul001](https://forum.uipath.com/u/Gokul001)\
**Post date:** [September 19, 2022, 1:43pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147/4 "2022-09-19T13:43:14Z")

</div>

HI @MikeC

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

Check out the Link

> [@How to manipulate a part of string: Split, Trim, Substring, Replace, Remove, Left, Right](https://forum.uipath.com/t/how-to-manipulate-a-part-of-string-split-trim-substring-replace-remove-left-right/140180):
>
> Hi, if you are a beginner in the world of automation and would like to know how you can manipulate text based on the solutions available in the [VB.NET](http://VB.NET) code and using REGEX (regular expressions) then you are in the right place. In the topic below, you will learn how to easily extract data from any part of the search text using various methods. The topic includes solution examples with descriptions and graphics to better understand the topic for functions such as: Split Substring Left Right R…

Regards  
Gokul

---

<div class="post-metadata">

**Author:** ![MikeC](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mikec/32/176649_2.png) [@MikeC](https://forum.uipath.com/u/MikeC)\
**Post date:** [September 19, 2022, 2:27pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147/5 "2022-09-19T14:27:55Z")

</div>

c → using the period character as delimiter

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

Thanks to everyone 😀

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [September 22, 2022, 2:28pm UTC](https://forum.uipath.com/t/dt-split-cell-question/474147/6 "2022-09-22T14:28:04Z")

</div>

Closed on September 22, 2022, 2:28pm UTC

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