Page 1 of 1
User-Defined Functions
Posted: 22 Mar 2025 08:55
by Garonne
Hey Don,
I do understand, that this might not really be something easy to add, but, can you imagine adding user functions that are callable similar to your <get> and other requests?
Something like:
Code: Select all
<user [id] [param1] [param2] [...]>
usable anywhere variables are accepted, definable as script?
This would (of course) close my other request about
XYVariable for Elevated/Admin Rights of XYplorer, since I could totally do that on my own writing a small conversion script.
This would most likely solve a bunch of similar requests right from the start, so I do think it might be interesting for you.
Re: User-Defined Functions
Posted: 22 Mar 2025 21:09
by eil
Help file > User-Defined Functions.(+probably Permanent Variables)
Re: User-Defined Functions
Posted: 23 Mar 2025 11:06
by Garonne
eil wrote: ↑22 Mar 2025 21:09
Help file > User-Defined Functions.(+probably Permanent Variables)
I'm sorry, I can't find "user-defined functions", when I'm searching the help file.
Not in "Content", not in "Index", not by "Searching".
The closest thing I get is User defined Commands or User Defined Buttons. But that's not what I'm searching for.
And permanent variables aren't probably helping, either.
I need a function-call in a location where I can use variables, but have no access to scripting. Pre-calculating the answer and storing it in a permanent variable (to be accessed when I need it) might help me now in this case, but might not tomorrow.
Re: User-Defined Functions
Posted: 23 Mar 2025 11:24
by klownboy
You may find it easier at times to use the XYplorerHelp pdf file especially when trying to find a topic. You can download the latest from
https://www.xyplorer.com/support.php (scroll down to Resources). You'll find
User-Definded Functions at page 569.
Also, take a look at highend's Show Help Topics script here
viewtopic.php?t=9248
Re: User-Defined Functions
Posted: 23 Mar 2025 13:43
by phred
Since Don is one of the few developers who keeps the User Manual updated with just about every new release, I found it better to bookmark the link to the manual and when needed simply click the bookmark. Then you'll be (temporarily) downloading and searching the latest manual.
Re: User-Defined Functions
Posted: 23 Mar 2025 19:14
by Garonne
phred wrote: ↑23 Mar 2025 13:43
Since Don is one of the few developers who keeps the User Manual updated with just about every new release, I found it better to bookmark the link to the manual and when needed simply click the bookmark. Then you'll be (temporarily) downloading and searching the latest manual.
Well, ok, but still, that's actually not what I'm searching for. I need to have a custom function in a location, where I'm not able to access scripting. Only variable calls are available. (i.e. Configuration -> Templates -> Title Bar). I can't access any form of script code at that location.
I'm very well capable of writing a script to do a regex replacement, but it doesn't work in Config Templates.
Re: User-Defined Functions
Posted: 07 Apr 2025 09:56
by admin
Garonne wrote: ↑23 Mar 2025 11:06
eil wrote: ↑22 Mar 2025 21:09
Help file > User-Defined Functions.(+probably Permanent Variables)
I'm sorry, I can't find "user-defined functions", when I'm searching the help file.
It's a sub-entry under Scripting. The stupid Help software won't find it unless you know this.

Re: User-Defined Functions
Posted: 07 Apr 2025 09:59
by admin
Garonne wrote: ↑22 Mar 2025 08:55
I do understand, that this might not really be something easy to add, but, can you imagine adding user functions that are callable similar to your <get> and other requests?
Well, certainly not now, and perhaps never. It would add a level of complication that very few users would ever benefit from.
Re: User-Defined Functions
Posted: 08 Apr 2025 19:50
by Garonne
admin wrote: ↑07 Apr 2025 09:59
Garonne wrote: ↑22 Mar 2025 08:55
I do understand, that this might not really be something easy to add, but, can you imagine adding user functions that are callable similar to your <get> and other requests?
Well, certainly not now, and perhaps never. It would add a level of complication that very few users would ever benefit from.
Well, definitely didn't expect "now", knowing you're deep in coding trying to get XY running in twinBasic... Well, too bad about that "probably never"... But the current output (though not optimal) works for now anyways.
Re: User-Defined Functions
Posted: 09 Apr 2025 17:23
by admin
"perhaps never", not "probably never"
