General information
Category:
Coding, syntax & commands
John,
I am trying to add tables to the data environment of a form. This needs to be done dynamically since the number of tables and their names are customizable by the user. I really don't have a problem with AddObject creating a cursor as much as the rest of the code to attach the tables to the data environment. This is my Code which will not work.
Dime gsMyCursor(5)
For myx = x To ALEN(gnTables)
With ThisForm.DataEnvironment
.AddObject(gsMyCursor(myx), "cursor")
.gsMyCursor(myx).DataBase = "c:\MyFolder\Apps\Church Books\churchdata.dbc"
.gsMyCursor(myx).CursorSource = gaTables(myx)
.CloseTables()
.OpenTables()
EndWith
Next myx
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only