Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Builders and dataenvironment.
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00495656
Message ID:
00495681
Views:
11
This message has been marked as the solution to the initial question of the thread.
>Hello people.
>
>I wanted to know how to add a table to a form's dataenvironment at design time via a builder.
>I am using BuilderB for developing my builders.
>
>Thanx in advance for your help.

Hiten,
You can get an object reference to the form's DE using ASELOBJ(myarray,2). Then you can add Curosr objects. Ex.
=aselobj(lathis,2)
debug
lathis.AddObject('Cursor3','Cursor')
lathis[1].AddObject('Cursor1','Cursor')
lathis[1].Cursor3.CursorSource = 'Test1'
lathis[1].Cursor3.Database = 'Test.Dbc'
You can launch a builder that asks what tables (or reads the information from somewhere) and adds the objects programmatically. Then save the form and the DE records will be saved in the SCX.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform