>>>Hi All,
>>>
>>>This's very strange for me. Occurs sometimes at customers, never happened me or our testers. Just a simple code:
>>
>>>this line gives "Alias name is already in use" error. But I close table at the second line. How can this error occurs?
>>
>>Other than what Lutz said about a timer, I think your code should run just fine, you could simplify it thou, and because you would be closing it (if necessary) and opening it in the same sentence this might help, as it will not be interrupted by a timer, AFAIK
>>
>>
>>
>>If !File(xlngfile)
>> Return nesne
>>Endif
>>
>>Use (xlngfile) Alias Language Again Shared in Select('Language')
>>select Language
>>
>
>Yes, there's a timer but there isn't any code about this table in timer. I'll turn off timer during this method and add your code. Thanks both of you, I didn't suspected about timer (however yet can't, because there isn't any code about this table at timer) and using of USE command I never thought. in select("language"), if it doesn't in use, it makes select 0, that's smart Hugo... :)
Probably already mentioned, but you also need to watch out for a grid control behavior if you've got a grid -- they could change the current workarea unexpectedly when they get focus..