Run user defined functions from address bar

Features wanted...
Post Reply
LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Run user defined functions from address bar

Post 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?

MBaas
Posts: 572
Joined: 15 Feb 2016 21:08

Re: Run user defined functions from address bar

Post by MBaas »

Yep, great idea - I think that would be useful :tup:
Last edited by MBaas on 13 Jan 2023 09:50, edited 2 times in total.
______________________________________________
Happy user ;-)

eil
Posts: 1617
Joined: 13 Jan 2011 19:44

Re: Run user defined functions from address bar

Post 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.
Last edited by eil on 14 Jan 2023 01:32, edited 1 time in total.
Win 7 SP1 x64 100% 1366x768

Daniel0312
Posts: 154
Joined: 15 Feb 2016 10:48

Re: Run user defined functions from address bar

Post 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.
Daniel
Windows7 SP1 x64 / XY latest stable

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Run user defined functions from address bar

Post by admin »

Next beta... :cup:

MBaas
Posts: 572
Joined: 15 Feb 2016 21:08

Re: Run user defined functions from address bar

Post by MBaas »

:tup: :tup: :beer:
______________________________________________
Happy user ;-)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Run user defined functions from address bar

Post by admin »

And, do you like it?

MBaas
Posts: 572
Joined: 15 Feb 2016 21:08

Re: Run user defined functions from address bar

Post 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 ;)
______________________________________________
Happy user ;-)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Run user defined functions from address bar

Post 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...

Post Reply