Page 1 of 1

script error

Posted: 03 Feb 2013 13:10
by Ysl
Hi
Since version 12.00 I have the following error on a script

Image

can anyone help please ?

thanks

Re: script error

Posted: 03 Feb 2013 13:19
by Marco
Try

Code: Select all

New ("$newFile");

Re: script error

Posted: 03 Feb 2013 13:27
by Ysl
THANKS !

It works again !

Do you know where this change was documented ?

Re: script error

Posted: 03 Feb 2013 14:04
by Marco
Ysl wrote:THANKS !

It works again !

Do you know where this change was documented ?
No, I just checked page 379 of the pdf help.

Re: script error

Posted: 03 Feb 2013 14:07
by PeterH
1) tried with V11.90.0224 - same error reported.

2) new is documented as a function, and functions have form new(...)
(The return value is the real name of the created file.)

By the way, to:

Code: Select all

 New ("$newFile");
A variable *can* be specified in double quotes. This way it's more easy to combine variables with constant text, as e.g. "$name.txt". Else it had to be $name.".txt" :P
But it doesn't make sense for me to put a pure variable in quotes. So I'd code:

Code: Select all

 New ($newFile);