Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Objects to a PageFrame on the Fly
Message
 
To
22/10/1998 11:53:42
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149463
Message ID:
00149471
Views:
19
>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):
&&Page.Activate

IF TYPE('This.oControls') != 'O'
    This.Addobject('oControls', 'myContainerClass')
ENDif
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform