Monday, November 08, 2010 at 12:02 AM.
system.verbs.builtins.dialog.olddialogs.twoWay
on twoWay (prompt, button1, button2) { local (userhitbutton1 = false); on itemhit (item) { case item { -1 { dialog.setvalue (1, button1); dialog.setvalue (2, button2); dialog.setvalue (3, prompt); return (true)}; 1 { userhitbutton1 = true; return (false)}; 2 { userhitbutton1 = false; return (false)}} else { return (true)}}; <<keep going if item isn't OK or Cancel dialog.run (263, 1, @itemhit); return (userhitbutton1)}; dialog.alert (twoway ("hello", 1, 2))
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.