>>I am getting old and losing my mind. Someone please help me to remember:
>>
>>I am converting a fpd2.6 app and want to read the prgs and build a form with labels from the @say's and textboxes from the @get's. I also want to give values to certain properties like value for the labels and datasource for the textboxes.
>>
>>thanks, jeffrey
>
>Create an empty form, and paste the following sample into Form.Init().
>
>
>This.AddObject("TxtClientCode", "TextBox")
>with ThisForm.TxtClientCode
> .Left = 10
> .Top = 50
> .Width = 100
> * .ControlSource = Client.ClientCode
> .Visible = .T.
>endwith
>
>
>Note that the object is made visible at the end - initially, it is invisible, to avoid the object from visually jumping around when you change its properties.
thanks,
I want to use fgets to read a .prg and get all of the labels and textboxes but this helps me remember how to set the props (brain lapse).