I can’t say I am a huge OOP fan so I don’t spend much time trying to “force fit” OOP features but this seems like a good reason to use it if it would work this way. If it can be done would this really be any better than just duplicating a YES/NO Dialog to be specific to one Webpage? In the “object world” can I do something like sub-class the original YES/NO Dialog and create a new instance that is used only on one Webpage and add code in the Dismissed Event that is private to that instantiated version of the YES/NO Dialog? ![]() The simple solution would be to duplicate the YES/NO Dialog for each Webpage that uses it but that does not seem like a great idea either but it would be much cleaner. To get the “my standard” YES/NO Dialog on a Webpage I just drag it from the object list on the left. The better way is to have a button with an action. Over the years Apple, and more recently Microsoft have moved away from the simple responses (yes/no, abort/retry/cancel) because users found them confusing. I would end up with either a CASE statement or a series of IF / ELSEIF statements. BobKeeney (Bob Keeney) June 12, 2014, 8:35pm 21 MsgBox is more or less the equivalent of the old VB6 Msgbox. ![]() My technique has been to set a session property and use it in the called dialog to know where it was called FROM. The code for YES on Webpage1 is different than Webpage2. ![]() What I was hoping to avoid was having several different Webpages use the same YES/NO Dialog and that dialog have code in it to do work where it was called from multiple Webpages. OK … The Dismissed Event helps a little by consolidating where to check for all of the user button clicks all in one place
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |