Home > Archive > FoxPro Help and Support > January 2006 > Form will not stay on screen









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Form will not stay on screen
cj

2006-01-23, 8:25 pm

I just managed to get a program to run but when the code I wrote in the
init event finished the whole program closed. I didn't have a quit
command in the event. How do I get the form to stay open on the screen?
Suppose I had a button to click, I would want it to stay open. When I
want it to exit I'll issue the quit command. Is this not correct?
Dan Freeman

2006-01-23, 8:25 pm

You need to look at READ EVENTS and CLEAR EVENTS in the help file.

Dan

cj wrote:
> I just managed to get a program to run but when the code I wrote in
> the init event finished the whole program closed. I didn't have a
> quit command in the event. How do I get the form to stay open on the
> screen? Suppose I had a button to click, I would want it to stay
> open. When I want it to exit I'll issue the quit command. Is this
> not correct?



Cindy Winegarden

2006-01-23, 8:25 pm

Hi CJ,

You need Read Events. Read Events waits for the user to do something, for
example to click a button.

Do Form MyForm
Read Events
*-- More stuff here
Clear Events

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy_winegarden@msn
.com www.cindywinegarden.com


"cj" <cj@nospam.nospam> wrote in message
news:euZKEyFIGHA.740@TK2MSFTNGP12.phx.gbl...
>I just managed to get a program to run but when the code I wrote in the
>init event finished the whole program closed. I didn't have a quit command
>in the event. How do I get the form to stay open on the screen?
> Suppose I had a button to click, I would want it to stay open. When I
> want it to exit I'll issue the quit command. Is this not correct?




Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com