# Write on StringArray Tag

**URL:** <https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476>\
**Category:** Ignition\
**Tags:** scripting, ignition80\
**Created:** [April 14, 2023, 8:13pm UTC](https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476 "2023-04-14T20:13:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yousef\_Ali](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yousef\_Ali](https://forum.inductiveautomation.com/u/Yousef_Ali)\
**Post date:** [April 14, 2023, 8:13pm UTC](https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476/1 "2023-04-14T20:13:45Z")

</div>

Hi ,  
I need to write value to certain String Array Element . for example  
SArray1[2] , i need to write 65 on the Value instead of 110.0 .. i failed to use system.tag.writeAsync

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/9/2944a77ca638449b47bf9e30eee69b007850bc78.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 14, 2023, 8:21pm UTC](https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476/2 "2023-04-14T20:21:06Z")

</div>

Show your script. Use the \</\> code formatting button to preserve indents and syntax highlighting.

Consider using [system.tag.writeBlocking - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.tag.writeBlocking) instead.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 14, 2023, 8:23pm UTC](https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476/3 "2023-04-14T20:23:37Z")

</div>

Consider using a document tag for the root, and a derived tag for each member you want t o modify (using `jsonGet` and `jsonSet`), which would expose each inner value as a distinct tag.

---

<div class="post-metadata">

**Author:** ![Yousef\_Ali](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yousef\_Ali](https://forum.inductiveautomation.com/u/Yousef_Ali)\
**Post date:** [April 14, 2023, 8:28pm UTC](https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476/4 "2023-04-14T20:28:40Z")

</div>

> [@paul-griffith](#):
>
> jsonGet

Tag originally array read from PLC as StringArray .and actually it 160 array element .

---

<div class="post-metadata">

**Author:** ![Yousef\_Ali](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yousef\_Ali](https://forum.inductiveautomation.com/u/Yousef_Ali)\
**Post date:** [April 14, 2023, 9:24pm UTC](https://forum.inductiveautomation.com/t/write-on-stringarray-tag/72476/5 "2023-04-14T21:24:35Z")

</div>

@paul-griffith on the same array some ID is null , thus why if i used document data type i will not know which element is it ? but if i used string array i will know from Array element no.  
what i am looking for is write only value on element array [1]!!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fb50e6ea24e42b8777e87a86332891e86d4719ce.png)
