Subroutine parameter count variable

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Subroutine parameter count variable

Post by gdyvig » Tue Feb 03, 2009 10:17 pm

For subroutines that accept a variable number of parameters an automatically generated variable for the parameter count would be helpful when making multiple calls. It could be patterned after the Separate command.

Example of usage:

SRT>CheckList
MessageModal>CheckList parameter count:%CheckList_Count%
//Insert Repeat loop to process list
END>CheckList

GoSub>CheckList,apples,oranges,plums
//MessageModal returns CheckList parameter count:3
//process 3 items
GoSub>CheckList,beans,carrots
//MessageModal returns CheckList parameter count:3
//process 2 items, 3rd item for plums is ignored.
//

Thanks,
Gale

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