| Message |
Orogan said:
function auction_to_gt (name,line,wildcards,styles)
if name == "AuctLine" then
SellName = (GetAliasWildcard ("AuctLine", "sell_name"))
Send ("gt " .. SellName)
return
end -- if
end --auction_to_gt
This is a trigger, and you are calling GetAliasWildcard. That gets alias wildcards. You meant GetTriggerWildcard.
You can simplify it anyway, like this:
function auction_to_gt (name,line,wildcards,styles)
if name == "AuctLine" then
Send ("gt " .. wildcards.sell_name)
return
end -- if
end --auction_to_gt
The wildcards array, passed to this function will have the named wildcard there, you don't need to use GetAliasWildcard or GetTriggerWildcard.
And if this function is only ever called by that one trigger, just do this:
function auction_to_gt (name,line,wildcards,styles)
Send ("gt " .. wildcards.sell_name)
end --auction_to_gt
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|