Worked! Thanks
>Hi Timothy!
>
>>>Another quest if I may, in creating a form programmatically using:
>>>"frmMyForm = CREATEOBJECT('Form')",
>>
>>>How does one get access to the methods of the form itself like you do for the objects on the form?
>>>>
>>>This is a encrypted english for me.
>>>
>>>- Get access for write code or for execute the code ?
>>>
>>>Sorry but i have not understood.
>>
>>
>>
>>In other words, from the example below where a form is created programatically, you see where the classes are defined for each object? You can access these objects methods like the click event by saying "Procedure click" and below it typing what you want in the click event. But how do you do this for the form itself?
>
>If I understand, you can to do this:
>
>frmMyForm = CREATEOBJECT('myForm')
>
>
>Define Class myForm as Form
> .Visible = .T.
>
> Procedure Click()
> Messagebox([Form was click!])
> EndProc
>
> Procedure Resize()
> Messagebox([Form's size was change!])
> EndProc
>EndDefine
>
>Other way is to use BindEventes function (see help for more information), if your VFP is 7 or 8.
>I hope this help you!
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."