# Unity pro (String to array of bytes)

**URL:** <https://forumautomation.com/t/unity-pro-string-to-array-of-bytes/2693>\
**Category:** Industrial Automation\
**Tags:** instrumentation, plc\
**Created:** [November 21, 2017, 6:37pm UTC](https://forumautomation.com/t/unity-pro-string-to-array-of-bytes/2693 "2017-11-21T18:37:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![osman](https://forumautomation.com/user_avatar/forumautomation.com/osman/32/3966_2.png) [@osman](https://forumautomation.com/u/osman)\
**Post date:** [November 21, 2017, 6:37pm UTC](https://forumautomation.com/t/unity-pro-string-to-array-of-bytes/2693/1 "2017-11-21T18:37:50Z")

</div>

I have tag data type is String consist of 22 characters, i want to extract character and convert into Byte to do some calculations, i have used( MID\_INT) Function Block extracts a sub-string of characters starting from a certain rank. The result is a character string but I want to Array of strings or Array of Bytes and take every Byte to do some calculations.

Is There any function Block can i use it? Thanks
