Scripting Bugs
Forum rules
READ THIS AND DO IT!!!
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
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%).
Re: Scripting Bugs
That they would more closely resemble the results shown for the scripts marked "Correct". 
[i]Load A;B - Confused > A[/i] wrote:Myself:
Text "Myself:<crlf>" . Self('script') . "<crlf 2>Caller:<crlf>" . Caller('script');
Caller:
Load '*', 'A;B';
[i]Load A;B - Confused > B[/i] wrote:Myself:
B
Caller:
Load A;B - Confused
Re: Scripting Bugs
Hmm... When shall I remind you?admin wrote:I have to postpone this.
Re: Scripting Bugs
FormatList only filters by first item when separator is CRLF.
Code: Select all
"FormatList Comparisons"
Global $G_SEP, $G_RESULT;
$result = '';
$G_SEP = ';'; Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
$G_SEP = '|'; Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
$G_SEP = '--'; Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
$G_SEP = '++'; Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
$G_SEP = "<crlf>"; Sub '_filter'; $result = $result . GetToken($G_RESULT, 'Count', $G_SEP) . ': ' . $G_RESULT . "<crlf 2>";
Text $result;
"_filter"
Global $G_SEP;
$list = 'a' . $G_SEP . 'ba' . $G_SEP . 'ac' . $G_SEP . 'ed';
$filter = 'a*' . $G_SEP . '*d';
Global $G_RESULT = FormatList($list, 'f', $G_SEP, $filter);-
admin
- Site Admin
- Posts: 65456
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Scripting Bugs
Confirmed! True for all separators larger than one character (and the characters bing different). Fix comes.TheQwerty wrote:FormatList only filters by first item when separator is CRLF.
FAQ | XY News RSS | XY X
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Scripting Bugs
report() seems to be accepting 1 or 0 as parameter, but not |-separated lists.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Re: Scripting Bugs
It works here. Did you use full path names?SkyFrontier wrote:report() seems to be accepting 1 or 0 as parameter, but not |-separated lists.
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Scripting Bugs
Yep.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Scripting Bugs
Code: Select all
step;
$inp = folderreport("files:{fullname}", "r", , "", , "|");
$input = trim("$inp", "|");
$input = report("{custom 2} = {fullname}|", "$input"); // custom 2 won't be caught
$a = report("{custom 2} = {fullname}|", 0); // correct
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Scripting Bugs
Code: Select all
$src = "*item*item2*";
$src = trim("$src", "*"); //problem happens here
echo "$src";
beta 0113.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
admin
- Site Admin
- Posts: 65456
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Scripting Bugs
Indeed! Fixed:SkyFrontier wrote:XY freezes.Code: Select all
$src = "*item*item2*"; $src = trim("$src", "*"); //problem happens here echo "$src";
beta 0113.
Code: Select all
! SC trim: Freeze on passing "*" as charlist. Fixed.
* SC trim: From now on when passing "*" or "?" as charlist they are
automatically treated as verbatim characters, not as wildcards.
FAQ | XY News RSS | XY X
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Scripting Bugs
Paste this into AB:
< mind the extra space at the end!
('echo gettoken ("<clipboard>", count, "<crlf ')
Now, enter a digit.
XY freezes.
beta 0113 (and earlier, can't track down).
Code: Select all
echo gettoken ("<clipboard>", count, "<crlf ('echo gettoken ("<clipboard>", count, "<crlf ')
Now, enter a digit.
XY freezes.
beta 0113 (and earlier, can't track down).
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
XYplorer Beta Club