Search found 30 matches

by altoclef
24 Apr 2023 14:23
Forum: Script Exchange
Topic: 2 array variables seem to be the same array
Replies: 3
Views: 448

Re: 2 array variables seem to be the same array

admin wrote: 23 Apr 2023 12:20 ... this was a bug, thanks for spotting it! :tup: Fixed in next beta. :cup:
Works as expected in 24.30.0119. Thanks for your prompt fix.
by altoclef
22 Apr 2023 12:06
Forum: Script Exchange
Topic: 2 array variables seem to be the same array
Replies: 3
Views: 448

2 array variables seem to be the same array

$array1 = array(); $secondArray = array(); echo "array1 has " . count($array1) . " elements<crlf>secondArray has " . count($secondArray) . " elements"; $array1ElementCount = explode($array1, "element1|element2|element3"); echo "array1 has " . count(...
by altoclef
25 Nov 2022 11:20
Forum: Tips & Tricks, Questions & Answers
Topic: Passing an array to a user function
Replies: 2
Views: 4524

Re: Passing an array to a user function

I've tested this in v23.80 and confirm that it is fixed.

Thank you.
by altoclef
28 Oct 2022 07:52
Forum: Tips & Tricks, Questions & Answers
Topic: Passing an array to a user function
Replies: 2
Views: 4524

Passing an array to a user function

Code: Select all

    $a = array("cat", "dog"); 
    echo count($a); 
    Test($a);

Code: Select all

function Test(&$array){
    echo count($array); 
}
The twocount()statements show 2 and -1.

This happens whether I pass the array by value or by reference.

What is wrong with my code, please?
by altoclef
25 Mar 2022 08:39
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 93423

Re: Website and Help Typos

Also on https://www.xyplorer.com/support.php, I noticed in the Current Change Log line XYplorer Change Log as of 2020 That use of "as of" reads oddly to me (my first language is British English). I investigated and found https://dictionary.cambridge.org/dictionary/english/as-of, which docu...
by altoclef
25 Mar 2022 08:10
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 93423

Re: Website and Help Typos

https://www.xyplorer.com/support.php

The Resources | PDF Help line is missing a closing ) after MB.
by altoclef
07 Mar 2022 17:26
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 93423

Re: Website and Help Typos

Code: Select all

::help "idh_scripting_comref.htm#idh_sc_formatlist";
These look inconsistent:
Syntax

format

f = filter (wildcards)
F = filter (no wildcards)
Examples

Filter f (no wildcards) versus F (wildcards):
Is the 2nd one back to front?
by altoclef
05 Feb 2022 18:22
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 93423

Re: Website and Help Typos

Code: Select all

::help "idh_scripting_comref.htm#idh_sc_freshhere";
::help "idh_scripting_comref.htm#idh_sc_readonlyhere";
I think the formatting for the syntax is slightly off in each case. Should it be
Syntax
freshhere
and
Syntax
readonlyhere
?
by altoclef
27 Jan 2022 18:44
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 93423

Re: Website and Help Typos

A couple of tiny omissions in the help here:

Code: Select all

::help "idh_scripting_comref.htm#idh_sc_input";

Code: Select all

input(...  [style=s|m|w],  ...)
and
notes
on style=s:
...
on style=m/w: ...
are each missing the 'e' option listed in the styles section.
by altoclef
26 Jan 2020 22:50
Forum: Bug Reports
Topic: load statement failing in v20.60
Replies: 4
Views: 1206

Re: load statement failing in v20.60

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.
by altoclef
09 Jan 2020 14:18
Forum: Bug Reports
Topic: load statement failing in v20.60
Replies: 4
Views: 1206

Re: load statement failing in v20.60

If this is a bug, is there any chance of it being fixed in the next release, please?
by altoclef
01 Jan 2020 13:30
Forum: Bug Reports
Topic: load statement failing in v20.60
Replies: 4
Views: 1206

load statement failing in v20.60

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?
by altoclef
15 Mar 2019 19:49
Forum: Bug Reports
Topic: Website and Help Typos
Replies: 392
Views: 93423

Re: Website and Help Typos

Code: Select all

::help "idh_scripting_comref.htm#idh_sc_regexreplace"
Syntax
regexreplace(string, pattern, replacement, [matchcase])
...
When no replacement is defined, ...
Should replacement have square braces, as it is optional?
by altoclef
15 Mar 2019 19:29
Forum: Wishes
Topic: Scripting: formatlist()
Replies: 4
Views: 1332

Re: Scripting: formatlist()

Ah, I see - you meant just using regexreplace(). I didn't realise that.

I shall have a look at your solution to fully understand it.

Thank you.
by altoclef
14 Mar 2019 19:33
Forum: Wishes
Topic: Scripting: formatlist()
Replies: 4
Views: 1332

Re: Scripting: formatlist()

Thank you for the suggestion. I've done this, which works for me:

formatlist2.PNG
formatlist2.PNG (3.84 KiB) Viewed 1293 times

If there is a more elegant solution please let me know.