quicksearch() failed

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
Nolan
Posts: 66
Joined: 27 Nov 2013 05:23

quicksearch() failed

Post by Nolan »

XY: v18.60.0102

Assume a file named test.txt is in D:\TEST.

Then this code:

Code: Select all

$a = quicksearch(quote("te" . "st.txt") . " /n", "D:\TEST");
will set $a to an empty string, not D:\TEST\test.txt.

The code works as expected in v18.60.0014.

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: quicksearch() failed

Post by Borut »

I believe that the problem is with quote and concatenation...

::$a = quote("te" . "st.txt") . " /n"; echo $a;
shows
quote("te""st.txt") /n

::$a = quote("te" . "st.txt"); echo $a;
shows
"test.txt"

I am actually unsure what has to be expected. The first result seems not correct to me. (Recent SCR changes played havoc with one of my scripts, but there it was me previously using dot concatenation incorrectly.) Tested with 18.60.0105.
Win 10 Pro 64bit

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

Re: quicksearch() failed

Post by admin »

Confirmed, thanks! :tup: Fix comes...

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: quicksearch() failed

Post by Borut »

Thanks Don! :appl: Probably among your very best bug resolving times ever.
Win 10 Pro 64bit

Post Reply