I'm working with an accounting system written if VFP6. It allows my to
run my own code from within the application.

In trying to debug, I inserted a few WAIT WINDOW "<text>" commands so that
I could see where my code was failing.

Strangely, the window appears but it doesn't wait. The program just keeps
on execution.

This is NOT a WAIT WINDOW NOWAIT.

Any idea how this happens? The application is an EXE, not an APP so it's
not running under the VFP runtime. Does this have anything to do with it?

Thanks, Frank

Re: WAIT WINDOW doesn't wait! by Eric

Eric
Sat Apr 17 17:12:08 CDT 2004

Hello, Frank!

Is it possible that you have one or more keypresses in the keyboard buffer?
What does CLEAR TYPEAHEAD do? For example, compare:

KEYBOARD "1234"
WAIT WINDOW "blah"

and

KEYBOARD "1234"
CLEAR TYPEAHEAD
WAIT WINDOW "blah"
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



Re: WAIT WINDOW doesn't wait! by Fred

Fred
Sat Apr 17 17:52:49 CDT 2004

I think Eric may have your problem resoloved with the CLEAR TYPEAHEAD, but
an .EXE still runs under the VFP runtime.

Fred
Microsoft Visual FoxPro MVP


"Frank Dreyfus" <fdreyfus@nyw.com> wrote in message
news:Xns94CEB6AFD10A4adfslur0mdoaur03jadl@207.46.248.16...
> I'm working with an accounting system written if VFP6. It allows my to
> run my own code from within the application.
>
> In trying to debug, I inserted a few WAIT WINDOW "<text>" commands so that
> I could see where my code was failing.
>
> Strangely, the window appears but it doesn't wait. The program just keeps
> on execution.
>
> This is NOT a WAIT WINDOW NOWAIT.
>
> Any idea how this happens? The application is an EXE, not an APP so it's
> not running under the VFP runtime. Does this have anything to do with it?
>
> Thanks, Frank



Re: WAIT WINDOW doesn't wait! by Anders

Anders
Sat Apr 17 21:44:06 CDT 2004

Even
DO xxx.EXE?

-Anders

"Fred Taylor" <ftaylor@mvps.org!REMOVE> skrev i meddelandet
news:eZPu16MJEHA.3104@TK2MSFTNGP10.phx.gbl...
> I think Eric may have your problem resoloved with the CLEAR TYPEAHEAD, but
> an .EXE still runs under the VFP runtime.
>
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Frank Dreyfus" <fdreyfus@nyw.com> wrote in message
> news:Xns94CEB6AFD10A4adfslur0mdoaur03jadl@207.46.248.16...
> > I'm working with an accounting system written if VFP6. It allows my to
> > run my own code from within the application.
> >
> > In trying to debug, I inserted a few WAIT WINDOW "<text>" commands so
that
> > I could see where my code was failing.
> >
> > Strangely, the window appears but it doesn't wait. The program just
keeps
> > on execution.
> >
> > This is NOT a WAIT WINDOW NOWAIT.
> >
> > Any idea how this happens? The application is an EXE, not an APP so
it's
> > not running under the VFP runtime. Does this have anything to do with
it?
> >
> > Thanks, Frank
>
>



Re: WAIT WINDOW doesn't wait! by Cindy

Cindy
Sun Apr 18 10:18:37 CDT 2004

In news: Xns94CEB6AFD10A4adfslur0mdoaur03jadl@207.46.248.16,
Frank Dreyfus <fdreyfus@nyw.com> wrote:
> In trying to debug, I inserted a few WAIT WINDOW "<text>" commands so
> that I could see where my code was failing.
>
> Strangely, the window appears but it doesn't wait.

Hi Frank,

A work-around would be to use MessageBox("Your text here").

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org www.cindywinegarden.com




Re: WAIT WINDOW doesn't wait! by Fred

Fred
Sun Apr 18 13:43:25 CDT 2004

If you DO an .EXE from within the IDE, it will run in your current instance
of VFP, not the runtime. If you execute it from Windows, it uses the
runtime. But I know you know that Anders. ;)


Fred
Microsoft Visual FOxPro MVP


"Anders" <anders@anders> wrote in message
news:%23dMRp%23OJEHA.2556@TK2MSFTNGP11.phx.gbl...
> Even
> DO xxx.EXE?
>
> -Anders
>
> "Fred Taylor" <ftaylor@mvps.org!REMOVE> skrev i meddelandet
> news:eZPu16MJEHA.3104@TK2MSFTNGP10.phx.gbl...
> > I think Eric may have your problem resoloved with the CLEAR TYPEAHEAD,
but
> > an .EXE still runs under the VFP runtime.
> >
> > Fred
> > Microsoft Visual FoxPro MVP
> >
> >
> > "Frank Dreyfus" <fdreyfus@nyw.com> wrote in message
> > news:Xns94CEB6AFD10A4adfslur0mdoaur03jadl@207.46.248.16...
> > > I'm working with an accounting system written if VFP6. It allows my
to
> > > run my own code from within the application.
> > >
> > > In trying to debug, I inserted a few WAIT WINDOW "<text>" commands so
> that
> > > I could see where my code was failing.
> > >
> > > Strangely, the window appears but it doesn't wait. The program just
> keeps
> > > on execution.
> > >
> > > This is NOT a WAIT WINDOW NOWAIT.
> > >
> > > Any idea how this happens? The application is an EXE, not an APP so
> it's
> > > not running under the VFP runtime. Does this have anything to do with
> it?
> > >
> > > Thanks, Frank
> >
> >
>
>



Re: WAIT WINDOW doesn't wait! by Frank

Frank
Mon Apr 19 20:08:34 CDT 2004

"Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in
news:Ocn5HkMJEHA.3292@TK2MSFTNGP11.phx.gbl:

> Is it possible that you have one or more keypresses in the keyboard
> buffer?

Yes. That was it!

Many thanks and thanks for all the help from others.

Frank