>My code is below :
>
> DO while Used('sozluk')
> USE in 'sozluk'
> EndDo
> If Used('sozluk')
> USE in 'sozluk'
> EndIf
> USE sozluk Exclusive In 0
> Select sozluk
>
>table of sozluk is closing in Do while...enddo. Althought not work second 'Use in' in If...Endif naturely, but i got error on Use sozluk alias.... that 'File is in use' ... Weird. What is my fault ??
>
>thnx.
I don't see a reason for While loop. Just simply do
local loEx
use in select('sozluk')
try
use sozluk Exclusive In 0
catch to loEx
=messagebox('File Sozluk could not be opened because of ' + m.loEx.message)
endtry
If it's not broken, fix it until it is.
My Blog