# String to Int32 array conversion

**URL:** <https://forum.uipath.com/t/string-to-int32-array-conversion/230892>\
**Category:** Learning Hub\
**Tags:** activities, system\
**Created:** [June 13, 2020, 3:09pm UTC](https://forum.uipath.com/t/string-to-int32-array-conversion/230892 "2020-06-13T15:09:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hector\_Silva](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hector\_Silva](https://forum.uipath.com/u/Hector_Silva)\
**Post date:** [June 13, 2020, 3:09pm UTC](https://forum.uipath.com/t/string-to-int32-array-conversion/230892/1 "2020-06-13T15:09:41Z")

</div>

Hi, i’m new in UiPath and i have this case:

I have this String: “17 45 65 2 7 8 4” and i need convert this to an Int32 array {17,45,65,2,7,8,4}; (include the colon). Please help me.

---

<div class="post-metadata">

**Author:** ![aanandsanraj](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aanandsanraj/32/121496_2.png) [@aanandsanraj](https://forum.uipath.com/u/aanandsanraj)\
**Post date:** [June 13, 2020, 3:19pm UTC](https://forum.uipath.com/t/string-to-int32-array-conversion/230892/2 "2020-06-13T15:19:05Z")

</div>

Hi @Hector_Silva,

Try this code

> arrInt = Array.ConvertAll(“17 45 65 2 7 8 4”.Split(" "c),AddressOf Integer.Parse)

---

<div class="post-metadata">

**Author:** ![Hector\_Silva](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hector\_Silva](https://forum.uipath.com/u/Hector_Silva)\
**Post date:** [June 13, 2020, 3:58pm UTC](https://forum.uipath.com/t/string-to-int32-array-conversion/230892/3 "2020-06-13T15:58:00Z")

</div>

Thks my friend. It work perfect!!!

---

<div class="post-metadata">

**Author:** ![Hector\_Silva](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hector\_Silva](https://forum.uipath.com/u/Hector_Silva)\
**Post date:** [June 13, 2020, 4:28pm UTC](https://forum.uipath.com/t/string-to-int32-array-conversion/230892/4 "2020-06-13T16:28:40Z")

</div>

Oh, excuse me again, now my problem is convert the Int32 array to String.

Exaple: {17,45,65,2,7,8,4} to “17,45,65,2,7,8,4”

---

<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:** [June 16, 2020, 4:28pm UTC](https://forum.uipath.com/t/string-to-int32-array-conversion/230892/5 "2020-06-16T16:28:48Z")

</div>

Closed on June 16, 2020, 4:28pm UTC

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