PageWidth how to assign a value to a variable?

menglv
Newbie
Posts: 15
Joined: Mon Mar 10, 2014 10:25 am

PageWidth how to assign a value to a variable?

Post 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
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

PageWidth how to assign a value to a variable?

Post 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
menglv
Newbie
Posts: 15
Joined: Mon Mar 10, 2014 10:25 am

PageWidth how to assign a value to a variable?

Post 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.
Post Reply