Article ID: 137411
Article Last Modified on 5/7/2003
x = CREATEOBJECT( 'myform' )
x.Show
READ EVENTS
DEFINE CLASS myform AS Form
HalfHeightCaption = .t.
Add Object cmdclose AS CommandButton
cmdclose.Caption = "Close"
PROCEDURE cmdclose.click
thisform.release
ENDPROC
PROCEDURE QueryUnload
NODEFAULT
ENDPROC
PROCEDURE Destroy
CLEAR EVENTS
ENDPROC
ENDDEFINE
oForm = CREATEOBJECT('Form')
oForm.HalfHeightCaption = .T.
oForm.Closable = .F.
oForm.Show()
READ EVENTS
Double-click the form's control box to close the form. Although the form
appears to close, the READ EVENTS is still in effect. To clear the READ
EVENTS and return to the Command window, choose Cancel from the Program
menu.
Keywords: kbbug kbprogramming kbcode KB137411