Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Builders and dataenvironment.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00495656
Message ID:
00495681
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform