Code: Select all
Do tCodeToExecute
If The Result <> Empty Then
Put The Result Into Field 2 Of Me
Else If It <> Empty Then
Put It Into Field 2 Of Me
End If
// Put Value(tCodeToExecute) Into Field 2 Of Me
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
Do tCodeToExecute
If The Result <> Empty Then
Put The Result Into Field 2 Of Me
Else If It <> Empty Then
Put It Into Field 2 Of Me
End If
// Put Value(tCodeToExecute) Into Field 2 Of Me
Code: Select all
set the revMessageBoxRedirect to the long id of cd 1 of stack "4wConsole"
Back atcha, Mick. Seems it's been a while until I started seeing some of your posts here recently.mickpitkin92 wrote:Hello Richard, good to hear from you again dude
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.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
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).But on a serious note, does the property exist in the standalone engine as well?
Erm...I don't know how it came to be exactly and now that I think about it, I don't seem to notice a difference between the lower case that everyone else uses and the title case that I use, I picked up Revolution back in September 2003 and I've done title case for as long as I can remember (The highly deteriorated text and symbol on my right shift key demonstrates this too well) so I wouldn't be surprised if I started doing it back when I started coding and at this point I think it is just muscle memory as I cannot for the life of me get myself to use lower case in LC.dunbarx wrote:Hi.
I see you take the time to "TitleText" each word in your scripts. Do you find that more readable? (Do You Find That More Readable?)
Just wondering...
Craig Newman
There be dragons!mickpitkin92 wrote:I did notice when I was perusing the Message Box code and its dependencies I noticed a couple of calls to something called _Internal, is that the engine? If so would you happen to know what it does? I'm not going to go messing around with that bit but I'm curious to see what it does.
I'm not sure if anyone but a handful of us enjoys such arcana, but since I do I'll be adding a new section to the revision to RevNet I'm working on, which will include info on the undocumented elements I've collected (all the way down to the long-since-deprecated-but-delightfully-mysteriously-named "mode14" <g>).mickpitkin92 wrote:I think with the engine being open source, it may be cool for the developers to possibly document the likes of _Internal and revMessageBoxRedirect even if they come with a warning message saying to exercise caution when using them as people like me could be curious as to what they do and may lack the ability to understand C++ enough to figure them out ourselves.
Thanks for filing those.Also I seem to be on a role with reporting bugs with the engine this last week, I've reported three bugs so far, one with the Open File command, another with the FontNames function on Windows and just now another with the Alt+Space combo that displays the window menu on Windows. Feel quite chuffed with myself.
Ooooh goodie, I'd love to be notified when the new RevNet goes up as I might have some useful resources for other devs as I work on my own projects, will you be adding the ability for websites to cross link to resources on RevNet, because at some point I'd like to have a website going for my stuff and being able to provide a link to stuff I've put on RevNet would be quite nice and would drive others to discover other resources on there.I'm not sure if anyone but a handful of us enjoys such arcana, but since I do I'll be adding a new section to the revision to RevNet I'm working on, which will include info on the undocumented elements I've collected (all the way down to the long-since-deprecated-but-delightfully-mysteriously-named "mode14" <g>).
No problem.Thanks for filing those.
If you have stack files to share there's no need to wait for the RevNet update: RevOnline should be working well now, and is the primary place for community stack sharing.mickpitkin92 wrote:I'd love to be notified when the new RevNet goes up as I might have some useful resources for other devs as I work on my own projects, will you be adding the ability for websites to cross link to resources on RevNet, because at some point I'd like to have a website going for my stuff and being able to provide a link to stuff I've put on RevNet would be quite nice and would drive others to discover other resources on there.