Book a Demo

Author Topic: Can't get TRIM_LEFT to work  (Read 3509 times)

dannodj

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Can't get TRIM_LEFT to work
« on: January 27, 2010, 03:31:16 am »
Hi,

probably something obvious, but I can't get the TRIM_LEFT function to drop the first 3 characters from an attribute name string. I'm using the following code:
 $shortName=%TRIM_LEFT(attName,3)%
Can anyone help?

Dan

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Can't get TRIM_LEFT to work
« Reply #1 on: January 27, 2010, 10:22:49 am »
Maybe try using %MID(attName, 3)% instead.  Does that help?

dannodj

  • EA Novice
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Can't get TRIM_LEFT to work
« Reply #2 on: January 27, 2010, 08:34:53 pm »
Thanks,

should have spotted that the macro wasn't being recognised in the editor

Dan