At 4:00 PM -0600 4/6/06, Kevin Lohka wrote:

How can I access the DataAvailable event of the Shell Class when I'm instantiating the Shell Class through code in the console rather then as an object on a window?

There are basically two ways to implement any event in any class:

1. Add an instance of that class to a window, and implement the event in the window's code.

2. Create a subclass of that class, and implement the event there. Then you can instantiate this subclass dynamically.

You've been doing 1, but in a console class that's not available, so you'll have to do 2.

My problem is that in the console app I haven't figured out how to "wait" for a response from the Shell Class.

Make an event loop, something like this (in the Run event of your app):

  While not done
    DoEvents
  Wend

This assumes you have a "done" property on your app which you set to true when it's time to quit.

Best,
- Joe

--

Joe Strout  --  [EMAIL PROTECTED]
Available for custom REALbasic programming and training.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

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

Reply via email to