# How to get the string value from a hash("string")

**URL:** <https://forum.defold.com/t/how-to-get-the-string-value-from-a-hash-string/1545>\
**Category:** Questions\
**Created:** [April 14, 2016, 5:19am UTC](https://forum.defold.com/t/how-to-get-the-string-value-from-a-hash-string/1545 "2016-04-14T05:19:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Emil\_Aguinaldo](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/emil_aguinaldo/32/965_2.png) [@Emil\_Aguinaldo](https://forum.defold.com/u/Emil_Aguinaldo)\
**Post date:** [April 14, 2016, 5:46am UTC](https://forum.defold.com/t/how-to-get-the-string-value-from-a-hash-string/1545/5 "2016-04-14T05:46:11Z")

</div>

Thats what i thought. Thanks for confirming that. So i guess my real question is why i cant seem to declare a string property. I’d like to pass a string to another script but go.property wont allow me strings.

> [@How to declare properties that have string value](https://forum.defold.com/t/how-to-declare-properties-that-have-string-value/1546):
>
> Been wondering why its not possible to define a string property like the one below go.property(“name”, noname)) I always get this error “Only these types are available: number, hash, msg.url, vmath.vector3, vmath.vector4, vmath.quat…” are allowed Instead i have to write it as go.property(“name”, hash(“noname”)) Id like to be able to pass string properties without have to figure out how to cast a hash back to a string.

@Pkeod do u mind jumping to my other question?

---

_[View the full topic](https://forum.defold.com/t/how-to-get-the-string-value-from-a-hash-string/1545)._
