Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I add table(s) to the form DE at runtime
Message
From
31/10/2004 18:48:11
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00955199
Message ID:
00956366
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform