this still only for the first five?admin wrote:Next version you can report those columns via their captions.
Scripting Bugs
Re: Scripting Bugs
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Scripting Bugs
No, for all (as long as they are shown in the current list).SammaySarkar wrote:this still only for the first five?admin wrote:Next version you can report those columns via their captions.
FAQ | XY News RSS | XY Twitter
Re: Scripting Bugs
okay, it doesn't seem to work when report()'s itemlist param is filled.
also how to choose between two CCs both of which happen to have the same caption? Now CCs are prioritized based on when they were added to list.
Code: Select all
::text report("{SomeCCCaption}<crlf>"); // return == expectation
::text report("{SomeCCCaption}<crlf>",<curitem>); // return != expectation
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Scripting Bugs
Yes, it only works for the list.
Improvements later.
Improvements later.
FAQ | XY News RSS | XY Twitter
Re: Scripting Bugs
sc savethumb() doesn't add default/defined extension to created thumbfile if source item name has extra .'s .
Code: Select all
echo savethumb("E:\Test.pdf" , , 400, 500, "png"); //creates E:\Test_thumb.png
echo savethumb("E:\Test.source.pdf", , 400, 500, "png"); //creates E:\Test.source_thumb
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Scripting Bugs
default values of function parameter variables are not
processed like elsewhere. [code] text f1(),,,'f1() out';text f2(),,,'f2() out';text f3(),,,'f3() out'; text 'start'.'<crlf>'.<crlf>."<crlf>".'end',,,'regular out'; function f1($lf1 = '<crlf>', $lf2 = <crlf>, $lf3 = "<crlf>"){ return 'start' . $lf1. $lf2 . $lf3 . 'end'; } function f2($lf1 = '<crlf>', $lf2 = <crlf>, $lf3 = "<crlf>"){ $lf1 = $lf1;$lf2 = $lf2;$lf3 = $lf3; return 'start' . $lf1. $lf2 . $lf3 . 'end'; } function f3($lf1 = '<crlf>', $lf2 = <crlf>, $lf3 = "<crlf>"){ $lf1 = $lf1,r;$lf2 = $lf2,r;$lf3 = $lf3,r; //silly workaround return 'start' . $lf1. $lf2 . $lf3 . 'end'; }[/code]$lf1/'<crlf>' should stay literal, but the other two should not.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Scripting Bugs
Default parameters are not evaluated at all. They are taken as literals. You cannot even use permanent variables as default parameters (and have them resolved). Nor constantss (and have them resolved).
FAQ | XY News RSS | XY Twitter
Re: Scripting Bugs
so the silly workaround will have to remain in use.
I suppose you have your reasons... but the situation is inconvenient.
Here's hoping a better way reveal itself.
I suppose you have your reasons... but the situation is inconvenient.
Here's hoping a better way reveal itself.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Scripting Bugs
Eh, sorry, but I don't like it.
If it's not a bug then it's at least a noticeable bump in the road to UDF perfection.
Constants/native variables should not suddenly become literal strings; it diverts from silently divert from regular scripting rules.
It's counter-intuitive : when I want a literal <crlf> string I use '<crlf>', else it must be processed.
So again, here's hoping you find a quick fix!
If it's not a bug then it's at least a noticeable bump in the road to UDF perfection.
Constants/native variables should not suddenly become literal strings; it diverts from silently divert from regular scripting rules.
It's counter-intuitive : when I want a literal <crlf> string I use '<crlf>', else it must be processed.
So again, here's hoping you find a quick fix!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60567
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Scripting Bugs
Just rechecked with PHP: Constants *are* resolved! But only if unquoted. Single and double quoted constants are not resolved.
In accordance to usage elsewhere in XY I will allow unquoted and double-quoted default parameters to be resolved (XY native vars and environment vars)
So I will make this work (resolve):
In accordance to usage elsewhere in XY I will allow unquoted and double-quoted default parameters to be resolved (XY native vars and environment vars)
So I will make this work (resolve):
Code: Select all
..., $lf2 = <crlf>, $lf2 = "<crlf>", ...
FAQ | XY News RSS | XY Twitter
Re: Scripting Bugs
v15.00.0517
Something's wrong with writefile()...
Use this from the address bar:
"No such argument" script error appears.
Something's wrong with writefile()...
Use this from the address bar:
Code: Select all
writefile("test.txt", "abc");
One of my scripts helped you out? Please donate via Paypal
Re: Scripting Bugs
a little thing: changelog speaks of the mysterious aingle-quotes.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]