oForm = create('edittest') oForm.Show(1) DEFINE CLASS edittest AS form Top = 0 Left = 0 Height = 85 Width = 182 DoCreate = .T. Caption = "Form1" Name = "Form1" ADD OBJECT edit1 AS editbox WITH ; Height = 24, ; Left = 12, ; Top = 12, ; Width = 156, ; Name = "Edit1" ADD OBJECT command1 AS commandbutton WITH ; Top = 48, ; Left = 48, ; Height = 27, ; Width = 84, ; Caption = "Command1", ; Name = "Command1" PROCEDURE command1.Click wait window thisform.edit1.value ENDPROC ENDDEFINE