Page 1 of 1

Run user defined functions from address bar

Posted: 09 Sep 2022 10:43
by LittleBiG
Sometimes it would be great to run user defined functions quickly from the address bar. Which is not possible now, because I cannot use include in AB. Would it be a way to achieve this? Maybe a central repository for those functions and they could be loaded silently on start?

Re: Run user defined functions from address bar

Posted: 12 Jan 2023 18:03
by MBaas
Yep, great idea - I think that would be useful :tup:

Re: Run user defined functions from address bar

Posted: 13 Jan 2023 01:56
by eil
Not a full solution, but if your UDF is launching a script from Scripts folder, you can use Alias to run same script, and aliases can work in AB.

Re: Run user defined functions from address bar

Posted: 13 Jan 2023 09:31
by Daniel0312
For a slightly different purpose I did the following:
I created an UDC containing only the iNCLUDE statement with my functions library (e.g. #1420)
When I want to use a user defined function I type #1420; MyFunction();
A little more typing but it does the job.

Re: Run user defined functions from address bar

Posted: 13 Jan 2023 14:33
by admin
Next beta... :cup:

Re: Run user defined functions from address bar

Posted: 13 Jan 2023 15:16
by MBaas
:tup: :tup: :beer:

Re: Run user defined functions from address bar

Posted: 15 Jan 2023 14:56
by admin
And, do you like it?

Re: Run user defined functions from address bar

Posted: 15 Jan 2023 17:03
by MBaas
TBH, I :tup: 'ed that because I was hoping this change would also take care of the issue I was having: the desire to use UDFs in CFAs without loading (like "global functions"). But unfortunately that is out of scope according to the whatsnew so you've not given me a chance to like it ;)

Re: Run user defined functions from address bar

Posted: 15 Jan 2023 17:34
by admin
It makes the most sense in the AB. In UDC you have multi-line scripts, so you can use include. In CFA, yes, that could make sense. Maybe later...