# toString not working in 7.8.4

**URL:** <https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372>\
**Category:** Ignition\
**Created:** [November 17, 2016, 11:57am UTC](https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372 "2016-11-17T11:57:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![roshanbhosale](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roshanbhosale/32/4899_2.png) [@roshanbhosale](https://forum.inductiveautomation.com/u/roshanbhosale)\
**Post date:** [November 17, 2016, 11:57am UTC](https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372/1 "2016-11-17T11:57:48Z")

</div>

hi,  
to use toString() or toStr() in ignition 7.8.4 do we have to import anything??  
i tried using it directly but it is throwing an error as “toString is not defined”…

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 17, 2016, 12:03pm UTC](https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372/2 "2016-11-17T12:03:40Z")

</div>

Are you trying to use the toStr() and toString() expression functions in a Jython script? It’s important to realize that they are two entirely different concepts.

In Jython you would use the str() function as the equivalent.

---

<div class="post-metadata">

**Author:** ![roshanbhosale](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roshanbhosale/32/4899_2.png) [@roshanbhosale](https://forum.inductiveautomation.com/u/roshanbhosale)\
**Post date:** [November 17, 2016, 12:23pm UTC](https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372/3 "2016-11-17T12:23:34Z")

</div>

thank you for reply,

i am using it in actionperformed script…the str() worked…but in ignition help manual there is nothing mentioned about using str(). it has mentioned toStr() and toString()…

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 17, 2016, 12:31pm UTC](https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372/4 "2016-11-17T12:31:16Z")

</div>

The language you use when writing scripts is based on Python 2.5. str() is part of the standard library.

[python.org/doc/2.5.4/](https://www.python.org/doc/2.5.4/)

---

<div class="post-metadata">

**Author:** ![roshanbhosale](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/roshanbhosale/32/4899_2.png) [@roshanbhosale](https://forum.inductiveautomation.com/u/roshanbhosale)\
**Post date:** [November 22, 2016, 9:17am UTC](https://forum.inductiveautomation.com/t/tostring-not-working-in-7-8-4/12372/5 "2016-11-22T09:17:06Z")

</div>

thanks for the reply…
