mickpitkin92 wrote:Hello Richard, good to hear from you again dude

Back atcha, Mick. Seems it's been a while until I started seeing some of your posts here recently.
I've been trying for the past hour or so to reimplement the code of the Message Box in a seperate stack including dependent functions so that I could use the debugger to step through the code and see if there was a method that I was just glossing over and the amount of code in the thing. Jeez, I felt like I was red pilling it up and about to break out of the Matrix at any moment. Hehe
It's useful that the IDE code is available for all of us to review, but mostly for community contributions to the IDE itself rather than learning techniques that could be used in our own work.
The IDE has a great many considerations it needs to take into account to handle anything we can throw at it, but our own apps are often (thankfully) much simpler.
In short, the IDE's Message Box generally works well in the IDE, but I wouldn't dare invest the time to try to make it work in any other environment. It's just too dependent on other IDE components, so, as you've found, such an exercise quickly descends into madness.
But on a serious note, does the property exist in the standalone engine as well?
Indeed it does. One of the reasons I started work on my Console tool was to help me diagnose issues unique to the standalone environment. Without such an open-ended tool such exercises can be very time-consuming, requiring a mix of logging and sprinkling answer dialogs throughout and such, and constantly rebuilding and re-launching. But with a general-purpose Message Box-like tool I can call handlers and get global values and more on the fly. (I also made a simple lightweight standalone-compatible debugger, but that's another story).
Console is not yet stable, but once it is I'll be sharing it under GPL so everyone can play with it and modify it. May be a few weeks yet, though, as I have more pressing needs with some client projects.
In the meantime, exploring what you can do with revMessageBoxRedirect is time well spent IMO, since it opens the door to a wide range of useful diagnostic tools. And starting from scratch it definitely simpler than trying to coerce the IDE's Message Box. Try a few "do" and "value" things on the inputs, adding a line to set the defaultStack so the execution context is the topstack, and you'll be well on your way reasonably quickly.