Problem with max items sent to a script.

Posted by Edgeofforever on Wed 05 Jan 2005 05:31 PM — 4 posts, 17,331 views.

#0
I have a trigger that sends 12 variables to a script, but when I try to access thewildcards(11) I get an error. Is there a limit to the number of variables you can send to a script?

Any help would be appriciated.
Australia Forum Administrator #1
Read the documentation on triggers - it describes your problem exactly and how to fix it.
#2
I see how that would fix my problem, but It still doesnt work, it's giving me an error from the line

GetTriggerWildcard(10)

"argument not optional"

I'm not sure what this means.
USA #3
You need the trigger name.
(http://www.gammon.com.au/scripts/function.php?name=GetTriggerWildcard for more information)

Are you doing this from within the trigger (in the send box)? If so, you just use %<10>.

If its within a subroutine (called by the trigger) then you can either hardcode the trigger name, or use the variable you passed with the subroutine.

sub (sName,sLine,aryWild)
note GetTriggerWildcard(sName, 10)
end sub