1 Reply Latest reply on Feb 2, 2008 3:40 PM by Newsgroup_User

    substr. problem

    phil1943 Level 1
      hello, I am trying to return a substr. of the String variable 'thisMatilda'.
      It tells me it is 'undefined'. The trace of 'thisMatilda' works fine, so why wont the substr. method then work and output correctly into the String 'subbed' ?
      Thanks for any advice.

      var subbed:String
      var thisMatilda:String = eval(this)
      subbed = thisMatilda.substr(0,5);