gettingstarted
[Top] [All Lists]

Re: How Do I Stop Code Execution As In MsgBox

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: How Do I Stop Code Execution As In MsgBox
From: Will Leshner <leshner at ljug dot com>
Date: Sat, 25 Sep 2004 07:55:56 -0700
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <7D092166-0F02-11D9-AFE2-000A95B8E76E at bellsouth dot net>

On Sep 25, 2004, at 7:52 AM, Barry Lumpkin wrote:

After receiving data from the serial port, I begin processing it. While processing, sometimes the processing code finds a string that needs to be corrected by the user before it can continue. I can use MsgBox to interrupt the processing and notify the user of the error. Works perfectly. What I'd rather do is have a window open that allows the user to enter corrected data. Unfortunately the processing continues without interruption creating errors. Is there a way when opening a window to cause the code in another window to stop as with the msgBox? I'm stumped.


Yes. Use ShowModal to show the dialog as a modal dialog. That will stop execution in the caller.

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>