Yes.
You have to use the CloseTables method before you add any new cursors or relations:
WITH oForm.DataEnvironment
.CloseTables()
.AddObject([Cursorx],[Cursor])
*!* set properties for Cursorx
.OpenTables()
ENDWITH
>Is it possible to add and remove tables to dataenvironment programaticaly.
>
>I need to change some tables from a database to another, and they are too much forms.
>
>Or maybe how to know the tables in a form.
>
>Any idea.
- Jeff