johnbuckley
Technical User
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?
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?