Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close button puzzle

Status
Not open for further replies.

johnbuckley

Technical User
Mar 25, 2002
52
GB
I have a top-level form with a webrowser control (_web) and a command button (Exit).

The Exit button executes a closedown procedure which only has the command QUIT in it.
In the startup prg OnShutdown also executes the same closedown procedure.

When you run the form and click the Exit button the programme quits ok. But if you click the close button in the top right of the form it will not quit. You get the error message:

*****
Unknown member oHost
object _web
method statustextchange
line 4

IF this.lRelease OR this.lBusy OR NOT this.oHost.visible
******

The browser properties are set to default : the oHost property is set to .NULL and the status bar is off and statustextchange is default.

I've tried all kinds of release, close and clear commands, the releasehost,quit,destroy and onquit events.

Why does the close button behave differently to the Exit button when they both execute the same procedure?

Any ideas please?
 
Have you tried adding RELEASE EVENTS in both places before the quit?
 
Yes - but there is only one place - in the closedown procedure. Still get the same error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top