load statement failing in v20.60

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
altoclef
Posts: 109
Joined: 12 Oct 2012 18:54
Location: Win11 @100%; XY 27.20.1600

load statement failing in v20.60

Post by altoclef »

Test.xys
load ("Test2");
Test2.xys
msg ("Test2");
Both scripts are in the same folder. In v20.40 it works, in v20.60 I get the error
Script file 'Test2.xys' not found.
load
Test2
Do I need to handle things differently in v20.60 or is this a new bug?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: load statement failing in v20.60

Post by highend »

Loading a Script File

The file name can be specified with full or relative path. In the latter case the script file to load is looked for

(1) in the path of the calling script file (if any)
So I'd call this a bug. Moving it appropriately...
One of my scripts helped you out? Please donate via Paypal

altoclef
Posts: 109
Joined: 12 Oct 2012 18:54
Location: Win11 @100%; XY 27.20.1600

Re: load statement failing in v20.60

Post by altoclef »

If this is a bug, is there any chance of it being fixed in the next release, please?

admin
Site Admin
Posts: 67304
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: load statement failing in v20.60

Post by admin »

Cannot confirm. :? Note that the script location defaults to the scripts path <xyscripts>.

If the above does not help, please explain in more detail what you are doing.

altoclef
Posts: 109
Joined: 12 Oct 2012 18:54
Location: Win11 @100%; XY 27.20.1600

Re: load statement failing in v20.60

Post by altoclef »

Both scripts are in <xyscripts> folder.

v20.60.0300 gave me the error message; I tried rolling back and reinstalling and got the same error.
v20.60.0400 is working fine. :veryconfused:

Thanks for looking into it for me.

Post Reply