>In our application here, there're some tables that cannot be changed by the users (we only put information in it during design time).
>So, there's no need to have these tables available into the Data directory if I include them into the Project, isn't that right?
>
>Well, I've tried to do this last week and I came to the following problem:
>
>All our Forms have Private DataSession and they need to have a look at the information stored into these tables. What happens is that if I have one of these tables opened in a DataSession, the function USED() within ANOTHER DataSession returns .F.. But if I try to use the table I get the error *File is in use*!?!?
>
>Is this behaviour expected? Did anyone else also face this before?
>
>regards,
>
>Renato
Renato,
You need to incldue the AGAIN keyword in your use command as in;
USE MyTable AGAIN
This is because the table is used in another area but not one that is part of the current form's Datasession. The USED() function is only looking in the current data session for a work area with the specified alias name.