>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.
I guess pageframe will allow you to add pages only. Page will allow you to add Labels,Textboxes,etc. Both cases you use AddObject method, e.g.
Thisform.pgf1.page1.addobject("text1","textbox")
If you want to add bunch of controls at a time, the nicer way is to put them into container class and instanciate (AddObject again) container object.
Edward Pikman
Independent Consultant