If you use private data sessions, as Ed mentioned, that will give each form its own set of SET commands. For example "Set Exclusive" is mapped to the data session and has a default of "ON". So even if you have a main prg that sets exclu off, when a form with a private data session runs, it will have exclusive set on. Unless you have each form call a program that sets the "SETS" to what you need before it opens any tables.
You can also then put your tables for the forms in the data environment and let the DE open and close your tables.
There are several things you can do to ensure that you can call .apps from another .app without them stepping on each other. I just started a new job and am working in that type of environment now.
PF
>Hi Perry,
>
>Thanks for the tip. But how am I going to control the data. Because I have the same VFP session for all these apps, any command like CLOSE TABLES ALL would close all the tables in all the apps, right? How about such a situation?
(On an infant's shirt): Already smarter than Bush