>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao