script error

Discuss and share scripts and script files...
Post Reply
Ysl
Posts: 162
Joined: 03 Jan 2007 22:22

script error

Post by Ysl »

Hi
Since version 12.00 I have the following error on a script

Image

can anyone help please ?

thanks

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: script error

Post by Marco »

Try

Code: Select all

New ("$newFile");
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Ysl
Posts: 162
Joined: 03 Jan 2007 22:22

Re: script error

Post by Ysl »

THANKS !

It works again !

Do you know where this change was documented ?

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: script error

Post 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.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

PeterH
Posts: 2827
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: script error

Post 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);

Post Reply