5 Replies Latest reply on Jan 7, 2014 6:34 AM by philmodjunk

    setting variable as the current field name and adding number to variable

    ShawnFitzgerald

      Title

      setting variable as the current field name and adding number to variable

      Post

            first I am trying to set a variable to the current field name in a script that I am running  I do not want to make a separate script for every instance I am doing this being as there are so many. So my question is is there a command that will allow me to set a variable as the field name I am working in that the script is triggered from.

            

           Second I have a variable that I set as 1 when the layout opens there are instances in my layout that every time a certain script runs I want that variable to be one more than it was.  So basically as that script gets triggered in each instance the variable would be one number higher than it was in the last instance.

            I thought this would do it but it didn't

           Set Variable [$defnum; Value:defnum + 1]