Page 2 of 2

PageWidth how to assign a value to a variable?

Posted: Wed Mar 26, 2014 4:58 am
by menglv
freddyp wrote: Then just write



currentbook;



as the last line of your script expression. I thought that was clear from the explanation.



Freddy


job.log(2,currnetbook)



The line above can see the variables return a value, but this value is undifined

PageWidth how to assign a value to a variable?

Posted: Wed Mar 26, 2014 4:22 pm
by freddyp
If



job.log(2,currentbook);



gives you a correct value in the messages. And



currentbook;



as the last line of your script generates and undefined error message, you are doing something wrong. You may want to check there are no lines with spaces after the last line.



Freddy

PageWidth how to assign a value to a variable?

Posted: Thu Mar 27, 2014 5:34 am
by menglv
freddyp wrote: If



job.log(2,currentbook);



gives you a correct value in the messages. And



currentbook;



as the last line of your script generates and undefined error message, you are doing something wrong. You may want to check there are no lines with spaces after the last line.



Freddy


Problem is: currentbook returns the value of this variable is not correct.