ah for that is a trick as well. Generate all the output html into a variable and pass the variable back to a mother macro who pushes it to the UI.
So
charGen()
output = createCharGenHTML()
frame():{output}
where createHTML() is the function that generates the actual html.
aditionally you can read the stack overflow article linked in sig
[1.3.b66] StackOverflowError using long macro
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.
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.
Re: [1.3.b66] StackOverflowError using long macro
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: [1.3.b66] StackOverflowError using long macro
wolph42, would you happen to have any snipits of sample code where you used this methodology?
Thanks
Thanks
Re: [1.3.b66] StackOverflowError using long macro
well a very simple version is without a userdefined function:
the advantage however of putting
<html>Hello world</html>
in an external function is that you have more quotes at your disposal. Some html functions like tooltips require both " " and ' ' and in the above example you only have ' ' at your disposal.
If you don't go too fancy though than the above example works as well. The important part is that you separate the html from the frame:{} part.
Code: Select all
[output = "<html>Hello world</html>"]
[frame():{output}]
<html>Hello world</html>
in an external function is that you have more quotes at your disposal. Some html functions like tooltips require both " " and ' ' and in the above example you only have ' ' at your disposal.
If you don't go too fancy though than the above example works as well. The important part is that you separate the html from the frame:{} part.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS