>>>Hi,
>>>
>>>How can I to convert this form1 class to .SCX form ?
>>>
>>>
>>>Local loForm as Form
>>>loForm = NewObject("form1")
>>>loForm.Show(1)
>>>***
>>>DEFINE CLASS form1 AS form
>>> DoCreate = .T.
>>> Caption = "Form1"
>>> Name = "Form1"
>>> ADD OBJECT command1 AS commandbutton WITH ;
>>> Top = 12, ;
>>> Left = 12, ;
>>> Height = 27, ;
>>> Width = 84, ;
>>> Caption = "Click me", ;
>>> Name = "Command1"
>>> Procedure command1.Click
>>> MessageBox("Click")
>>> EndProc
>>>EndDefine
>>>
>>
>>1) Create a new form (command window: create form myForm)
>>2) From form controls toolbar, add a commandbutton on form
>>3) Dblclick newly added commandbutton
>>4) Type in opened code window (which is by default is the 'Click' procedure for a commandbutton):
>>MessageBox("Click")
>>5) Close form saving
>>
>>Do form myForm
>>
>>Cetin
>
>
>Excuse me, Cetin. I don't explain the situation.
>
>
>I need to create a form and insert the controls, procedures and propperties programmatic.
>
>To understand, I'm creatting a utility to create Class Diagram(UML)... than the utility generate the code from the Class Diagram. Now I'm starting to implements the creation forms method in my utility.
>
>Read the Class Diagram and write a class form in a .PRG file is easy, but in SCX form is not easy to me. So I want to write in .PRG file and than convert to SCX form.
So you want something like prg2scx ? If so then check scctext.prg under tools folder. It can convert a scx to text (sca) and text to scx.
Cetin