>Hi all,
>
> I wrote a .PRG. I want to write Valid Event code in MyForm.Grid1.Column1.Text1, but I don't know how to write it in My .PRG. Codes are as follow:
>
>oForm = CREATEOBJECT('MyForm')
>oForm.SHOW
>
>DEFINE CLASS MyForm AS form
>
> .
> .
> .
>
> ADD OBJECT Quit AS commandbutton WITH ;
> .
> .
> .
>
> ADD OBJECT Grid1 AS grid WITH ;
> .
> .
> .
>
> PROCEDURE Init
> .
> .
> .
> ENDPROC
>
> PROCEDURE Quit.Click
> .
> .
> .
> ENDPROC
>
>ENDDEFINE
You can create this form/grid with all snippets in form designer, then open the form in Class Browser and see how it's coded. Probably, after this you will love form designer more :).
Edward Pikman
Independent Consultant