>Thanks Nick and Mike. By the way do you guys know how I can add/remove a table to data environment manually. Thanks again
>
>nick patel
I believe you are talking of adding the table to the dataenvirionment programmatically.
You can do it by using AddObject() method and then manipulating the properties of the added cursor. For example:
*** Form.Dataenvironment.BeforeOpenTables
this.addobject("myCursor","Cursor")
this.myCursor.CursorSource = "c:\tmp\test.dbf"
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison