Index
2000-08-18 02:58 – Iames Pizzoli : VFP6 SP3: Where do READ/CLEAR EVENTS go?
2000-08-18 03:08 – John C. Gunvaldson, CNE, MCP : RE: VFP6 SP3: Where do READ/CLEAR EVENTS go?
2000-08-18 03:11 – Allen Pollard : RE: VFP6 SP3: Where do READ/CLEAR EVENTS go?
2000-08-18 11:59 – Iames Pizzoli : R: VFP6 SP3: Where do READ/CLEAR EVENTS go?
2000-08-18 12:32 – jgunva - John C. Gunvaldson (DQ) : RE: VFP6 SP3: Where do READ/CLEAR EVENTS go?
2000-08-18 19:23 – Wilmar Guday : Re: VFP6 SP3: Where do READ/CLEAR EVENTS go?
Back to top
VFP6 SP3: Where do READ/CLEAR EVENTS go?

Author: Iames Pizzoli

Posted: 2000-08-18 02:58:19   Link

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

©2000 Iames Pizzoli
Back to top
RE: VFP6 SP3: Where do READ/CLEAR EVENTS go?

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:

http://leafe.com/mailListMaint.html

©2000 John C. Gunvaldson, CNE, MCP
Back to top
RE: VFP6 SP3: Where do READ/CLEAR EVENTS go?

Author: Allen Pollard

Posted: 2000-08-18 03:11:36   Link

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:

http://leafe.com/mailListMaint.html

©2000 Allen Pollard
Back to top
R: VFP6 SP3: Where do READ/CLEAR EVENTS go?

Author: Iames Pizzoli

Posted: 2000-08-18 11:59:00   Link

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

©2000 Iames Pizzoli
Back to top
RE: VFP6 SP3: Where do READ/CLEAR EVENTS go?

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

©2000 jgunva - John C. Gunvaldson (DQ)
Back to top
Re: VFP6 SP3: Where do READ/CLEAR EVENTS go?

Author: Wilmar Guday

Posted: 2000-08-18 19:23:06   Link

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

>

>

©2000 Wilmar Guday