Allow a parameter on Gosub

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
Baldrik
Junior Coder
Posts: 24
Joined: Mon Feb 14, 2005 11:11 pm
Location: TA7, UK

Allow a parameter on Gosub

Post by Baldrik » Tue Feb 22, 2005 10:56 pm

...so we could code things like the request from ferque6 for a single-line...

cntl>a


as...

gosub>cntl,a

srt>cntl
press cntl
send %GOSUB_PARM%
release cntl
end>cntl


Regards

ferque6
Junior Coder
Posts: 20
Joined: Tue Feb 01, 2005 9:21 am

Post by ferque6 » Thu Mar 31, 2005 7:31 am

yes, we need such a feature.
to be able to put parameters on gosub

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Sat Apr 02, 2005 8:09 pm

A very simple workaround (and works just fine from a design point of view, since msched scripts normally contain global variables anyway) is:

Let>GOSUB_PARM=cheese
Gosub>cntl

Allowing "cntl>" (SRT) to be recognised as a command is ... dangerous. It hinders new native commands in MSChed. What if a new feature is added that just happens to be named the same as what someone has already?

However, it may indeed save a few lines of code by allowing the
Gosub>cntl,cheese

ferque6
Junior Coder
Posts: 20
Joined: Tue Feb 01, 2005 9:21 am

Post by ferque6 » Wed Jul 06, 2005 10:56 am

I think it would be very useful this feature in Gosub

:P

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts