>Nobody ever told me it would be this hard!I have a screen with a grid. When the
>user presses enter a pageframe becomes visible for editing the current record.
>I want to programatically add labels and txtboxes for data entry to this
>pageframe. I can't seem to get the syntax nor the place in the event loop for
>using addobject or newobject or createobject or whichever command I am supposed
>to use. Can someone help me???? Thanks.
Well, for one thing, you'll probably want to put all those labels and textboxes in one container class, so you only have one object to add. The code will be something like (untested):
IF TYPE('This.oControls') != 'O'
This.Addobject('oControls', 'myContainerClass')
ENDif