I think the syntax you want to use is
USE (lcAlias) IN 0 NOUPDATE AGAIN SHARED
Without the parenthesis, you're opening a file named lcAlias and not the file referred to by the variable lcAlias.
HTH...John
>> Is EXCLUSIVE set on? If so VFP will try to open the database exclusively even if you open the table SHARED.
>
>Josh,
>
>Thanks for the reply. This is whay I thought too, but when I looked in VFP help under the USE command, this is what I found:
>
>SHARED Opens a table for shared use on a network. SHARED allows you to open a table for shared use even when EXCLUSIVE is set ON.
>
>To further test, I set EXCLUSIVE on and then issued the USE lcAlias in 0 NOUPDATE AGAIN SHARED command in the command window twice. When I enter SET and look at my default datasession I see the table opened twice?
>
>I am calling a custom method from the BeforeReadEvents Method of my application class. The strange thing is I can see the standard framework databases (appincl, errorlog ... ) are being opened twice with what appears to be the same command syntax.
>
>Kind Regards,
>
>Mat
John White [MOST]