Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I add table(s) to the form DE at runtime
Message
De
31/10/2004 18:48:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00955199
Message ID:
00956366
Vues:
12
Hi Soykan
I'm afraid I read this thread too late, but, anyway here is a sample. You can add cursors and relations in BeforeOpenTables.

WITH THIS
.InitialSelectedAlias="Archivo"

.ADDOBJECT('Archivo','Cursor')
.Archivo.Alias="Archivo"
.Archivo.BufferModeOverride=5
.Archivo.CursorSource="c:\MyDir\MyData\Archivo.dbf"
.Archivo.Database="c:\MyDir\MyData\MyDB.dbc"

.ADDOBJECT('Archivo_Provincias','Relation')
.Archivo_Provincias.ChildAlias="Provincias"
.Archivo_Provincias.ChildOrder="cProvincia"
.Archivo_Provincias.OneToMany=.F.
.Archivo_Provincias.ParentAlias="Archivo"
.Archivo_Provincias.RelationalExpr="cProvincia"
ENDWITH

I didn't read all the answers, but there were a lot of them, so probably you already solved your problemn, if not, here is an another one.
Good luck
Hernan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform