# String Length equals undefined

**URL:** <https://forum.kirupa.com/t/string-length-equals-undefined/286255>\
**Category:** flash\
**Created:** [April 12, 2009, 11:49pm UTC](https://forum.kirupa.com/t/string-length-equals-undefined/286255 "2009-04-12T23:49:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![visibleman](https://avatars.discourse-cdn.com/v4/letter/v/b9bd4f/32.png) [@visibleman](https://forum.kirupa.com/u/visibleman)\
**Post date:** [April 12, 2009, 11:49pm UTC](https://forum.kirupa.com/t/string-length-equals-undefined/286255/1 "2009-04-12T23:49:16Z")

</div>

Hi all,  
Can anyone see a problem with this code -

```auto

var strVenueTimes:String = venue_xml.firstChild.childNodes*.childNodes[7].childNodes[0];	
venue_openingtimes = strVenueTimes.split(",").join("
");

```

(venue\_openingtimes is a dynamic text field)

It keeps coming back ‘undefined’ (tracing the split/join returns the same) even though a trace (and firing it to the text field) on strVenueTimes returns the data ☹ infact a strVenueTimes.length returns undefined too…

cheers for any help 🙂

Edit - No Worries, stuck String() around the XML data and it solved it lol
