Link not passing parameters or token issue

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
nirkedar
Cave Troll
Posts: 52
Joined: Tue Sep 21, 2010 3:13 pm

Link not passing parameters or token issue

Post by nirkedar »

This one is stumping me:

I have a link displayed as an HTML image. The link calls a macro called SHEET@LIB:Controls and passes the calling Token ("Marco Polo" in this example) as it's parameter. Here is what the link is (when I print it using the broadcast(Link) command for debugging purposes):

[H: Link = macroLinkText("SHEET@LIB:Controls", "", "Marco Polo", "Marco Polo")]
[H: broadcast(Link)]

Result with: macro://SHEET@LIB:Controls//Marco Polo?Marco+Polo

When I click on this image (link) it goes to the SHEET@LIB:Controls macro. So far everything is good and dandy.
However, no parameters are noticed and even the getName() function results in an error???

Here's my first line of code in the SHEET@LIB:Controls macro:
[H: broadcast("Params: " + macro.args)]
Result with: Params:
Notice the missing parameters.

Why oh why? I've done this so many times in the past and I've never run into this issue. What am I missing?
TIA.

Post Reply

Return to “MapTool”