Hi,
I'm building a project with one and only form, a top level form. It'll have
a pageframe, a bunch of controls and two commandbuttons, OK and Cancel. No
menu. That's all. When I try it in the IDE, all is OK. But launched as an
EXE it starts and immediately disappears. I know this is due to the lack of
READ EVENTS. But where is its (and CLEAR EVENTS') place?
TIA
Iames
Author: John C. Gunvaldson, CNE, MCP
Posted: 2000-08-18 03:08:42 Link
Real quick,
One way is to create a small program to run the form. Something along the
lines of the following....
close all
clear all
clear
set procedure to &my procedure
set talk off
set deleted on
ect...
ect...
DO MyMainForm.Scx
Read Events
*--------
Then on a Button (called <Close Form ) on the Form - Have the click event
execute something like...
CLEAR EVENTS
ThisForm.Visible = .F.
ThisForm.Release()
RETURN DODEFAULT()
In a very simple Top Level Form - a process like this will work - I believe
the "Read Events" must exist outside of the Form - and before it is
called....
hth
John C. Gunvaldson, CNE, MCP
San Diego, CA
-----Original Message-----
From: profox@leafe.com [mailto:profox@leafe.com]On Behalf Of Iames
Pizzoli
Sent: Friday, August 18, 2000 12:58 AM
To: Multiple recipients of ProFox
Subject: VFP6 SP3: Where do READ/CLEAR EVENTS go?
Hi,
I'm building a project with one and only form, a top level form. It'll have
a pageframe, a bunch of controls and two commandbuttons, OK and Cancel. No
menu. That's all. When I try it in the IDE, all is OK. But launched as an
EXE it starts and immediately disappears. I know this is due to the lack of
READ EVENTS. But where is its (and CLEAR EVENTS') place?
TIA
Iames
----------------------------------------
Subscription maintenance at:
I put the read in the calling first program and the clear could in your case
go in both buttons or the unload of the form.
Allen
-----Original Message-----
From: profox@leafe.com [mailto:profox@leafe.com]On Behalf Of Iames
Pizzoli
Sent: 18 August 2000 08:58
To: Multiple recipients of ProFox
Subject: VFP6 SP3: Where do READ/CLEAR EVENTS go?
Hi,
I'm building a project with one and only form, a top level form. It'll have
a pageframe, a bunch of controls and two commandbuttons, OK and Cancel. No
menu. That's all. When I try it in the IDE, all is OK. But launched as an
EXE it starts and immediately disappears. I know this is due to the lack of
READ EVENTS. But where is its (and CLEAR EVENTS') place?
TIA
Iames
----------------------------------------
Subscription maintenance at:
John,
...
> CLEAR EVENTS
> ThisForm.Visible = .F.
> ThisForm.Release()
> RETURN DODEFAULT()
thanks, it worked!!
> In a very simple Top Level Form - a process like this will work -
> I believe
> the "Read Events" must exist outside of the Form - and before it is
> called....
So I repeatedly banged my head against the wall trying to do it all inside
the form.... Oh, well... Thanks again.
Iames
Author: jgunva - John C. Gunvaldson (DQ)
Posted: 2000-08-18 12:32:34 Link
No problem,
Glad it worked - and I left out all the steps where your startup program
does all of the environment saving calls (ie: lcOldDeleted = SET('DELETED'),
lcOldSafety = SET('SAFETY') etc... )- keeps track of paths, settings and
menus
does the form
and does all the cleanup, by returning the status of VFP environment, menus,
paths and settings - (ie: SET DELETED &lcOldDeleted,,,,) "We want to play
nice, yes <g>?"
Cheers
John C. Gunvaldson
San Diego, CA
-----Original Message-----
Subject: R: VFP6 SP3: Where do READ/CLEAR EVENTS go?
John,
...
> CLEAR EVENTS
> ThisForm.Visible = .F.
> ThisForm.Release()
> RETURN DODEFAULT()
thanks, it worked!!
> In a very simple Top Level Form - a process like this will work -
> I believe
> the "Read Events" must exist outside of the Form - and before it is
> called....
So I repeatedly banged my head against the wall trying to do it all
inside
the form.... Oh, well... Thanks again.
Iames
----------------------------------------
Subscription maintenance at:
http://leafe.com/mailListMaint.html
Put the READ EVENTS in the Activate procedure of the
form and the CLEAR EVENTS after you RELEASE the form.
This works for me.
Wilmar
----- Original Message -----
From: "Iames Pizzoli" <esperiasw@net24.it>
To: "Multiple recipients of ProFox" <profox@leafe.com>
Sent: Friday, August 18, 2000 3:58 PM
Subject: VFP6 SP3: Where do READ/CLEAR EVENTS go?
> Hi,
>
> I'm building a project with one and only form, a top level form. It'll
have
> a pageframe, a bunch of controls and two commandbuttons, OK and Cancel. No
> menu. That's all. When I try it in the IDE, all is OK. But launched as an
> EXE it starts and immediately disappears. I know this is due to the lack
of
> READ EVENTS. But where is its (and CLEAR EVENTS') place?
>
> TIA
>
> Iames
>
>
>
> ----------------------------------------
> Subscription maintenance at:
> http://leafe.com/mailListMaint.html
>
>