robertjacobs
2012-11-12, 16:31
I created a project with a single prg file and a single form using baseclass controls. Why does the generated code show DEFINE CLASS for base classes and why are there two DEFINE CLASS LABEL sections?
************************************************** ******************************
*
* File created by Lianja Version 1.0.0 (beta10)
* Converted on 11/12/2012 at 16:21:52
*
************************************************** ******************************
FORM1_3n50ympvf = createobject("FORM1")
** Make the form visible.
FORM1_3n50ympvf.show(1)
////////////////////////////////////////////////////////////////////////////////
define class FORM1 as form
** Children
add object Label1 as label
add object Label2 as label
add object Command1 as commandbutton
** Properties
DoCreate = .T.
Caption = "Form1"
Name = "FORM1"
enddefine
////////////////////////////////////////////////////////////////////////////////
define class label
** Properties
Caption = "Label1"
Height = 17
Left = 72
Top = 48
Width = 40
TabIndex = 1
Name = "Label1"
enddefine
////////////////////////////////////////////////////////////////////////////////
define class label
** Properties
Caption = "Label2"
Height = 17
Left = 226
Top = 48
Width = 40
TabIndex = 2
Name = "Label2"
enddefine
////////////////////////////////////////////////////////////////////////////////
define class commandbutton
** Properties
Top = 144
Left = 120
Height = 27
Width = 84
Caption = "Command1"
TabIndex = 3
Name = "Command1"
** Methods
PROCEDURE Click
THISFORM.RELEASE
ENDPROC
enddefine
************************************************** ******************************
*
* File created by Lianja Version 1.0.0 (beta10)
* Converted on 11/12/2012 at 16:21:52
*
************************************************** ******************************
FORM1_3n50ympvf = createobject("FORM1")
** Make the form visible.
FORM1_3n50ympvf.show(1)
////////////////////////////////////////////////////////////////////////////////
define class FORM1 as form
** Children
add object Label1 as label
add object Label2 as label
add object Command1 as commandbutton
** Properties
DoCreate = .T.
Caption = "Form1"
Name = "FORM1"
enddefine
////////////////////////////////////////////////////////////////////////////////
define class label
** Properties
Caption = "Label1"
Height = 17
Left = 72
Top = 48
Width = 40
TabIndex = 1
Name = "Label1"
enddefine
////////////////////////////////////////////////////////////////////////////////
define class label
** Properties
Caption = "Label2"
Height = 17
Left = 226
Top = 48
Width = 40
TabIndex = 2
Name = "Label2"
enddefine
////////////////////////////////////////////////////////////////////////////////
define class commandbutton
** Properties
Top = 144
Left = 120
Height = 27
Width = 84
Caption = "Command1"
TabIndex = 3
Name = "Command1"
** Methods
PROCEDURE Click
THISFORM.RELEASE
ENDPROC
enddefine