SET ASSERTS ON >>>>use in select("language") >>>> >>>>If !File(xlngfile) >>>> Return nesne >>>>Endif >>>> >>>>select 0 >>>>Use (xlngfile) Alias Language Again Shared //----error occurs at this line >>>>>>>>Also, is it possible that the file is in exclusive use in another datasession? I know that normally that would cause a different error, but we're already long way from normal.
use in select("language")Which will close the alias or do nothing if it wasn't open, thus skipping the "if used(..." check. When I saw that for the first time and understood what it does (and how), believe me, I had a smile on my face. (of course you believe me - had I said I had the smile somebody else's face, or elbow, that would be harder to believe...)