Reposting in the correct forum - sorry 'bout that!
I have a form with a custom toolbar (created as a custom property of the form):
see thread184-1124665.
One of the buttons on my toolbar is the close button that should close down the form. It does this using:
This same syntax works fine for running other methods of the form. However, when I click the button the form that I am trying to release hangs. By that I mean the form remains on the screen but frozen and blanked.
There is also a button on the form itself that does a thisform.release and that works fine. I have tried to set the the toolbar object reference to false on the form as part of the release event but this doesn't help. Any ideas?
I have a form with a custom toolbar (created as a custom property of the form):
Code:
THISFORM.objTool = CREATEOBJECT('ToolBar_main')
One of the buttons on my toolbar is the close button that should close down the form. It does this using:
Code:
IF TYPE('_SCREEN.activeform.name') = 'C' then
_SCREEN.activeform.release()
ENDIF
There is also a button on the form itself that does a thisform.release and that works fine. I have tried to set the the toolbar object reference to false on the form as part of the release event but this doesn't help. Any ideas?