Article ID: 168039
Article Last Modified on 4/26/2001
SET ASSERTS ON ASSERT 1=2 && will cause a message box.
SET ASSERTS ON
oForm1 = CREATEOBJECT("test")
oForm1.Visible = .t.
READ EVENTS
DEFINE CLASS test AS form
ADD OBJECT cmdNewForm AS ccmdNewForm
ADD OBJECT chkBox AS CheckBox WITH ;
left = 10, ;
top = 30
ADD OBJECT opgBox AS OptionGroup WITH ;
Width = 80, ;
Height = 50, ;
ButtonCount = 2, ;
option1.Caption = "Option1", ;
option1.Autosize = .T., ;
option2.Caption = "Option2", ;
option2.Autosize = .T., ;
left = 10, ;
top = 50
FUNCTION Destroy
CLEAR EVENTS
ENDFUNC
ENDDEFINE
DEFINE CLASS ccmdNewForm AS CommandButton
Caption = "Dialog"
FUNCTION Click
Thisform.LockScreen = .T.
ASSERT 1=2
Thisform.LockScreen = .F.
?Thisform.LockScreen
CLEAR
ENDFUNC
ENDDEFINE
Keywords: KB168039