2 Replies Latest reply on Oct 13, 2015 11:27 PM by newtoindesign

    NaN being returned instead of text

    newtoindesign

      Ok, I give up on this now, hopefully someone can help!

      I can't figure out why this returns NaN for the loop, instead of the string (a filename stripped from a full file path, could be numbers text, hypens etc)

       

      var panel1 = buttongroup.add ("group", undefined, "File Name")

      panel1.add('statictext {text: linkFileNameShort, characters: 0, justify: "right"}');

       

       

      But this code will return it fine

       

      var panel1 = buttongroup.add ("group", undefined, "File Name")

      panel1.add('statictext', [0,0,200,textheight], linkFileNameShort);

       

       

      Unfortunately I need the justify-right!