Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why no Directory() like File()?
Message
 
 
To
10/12/1999 10:38:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00301679
Message ID:
00301753
Views:
33
>handle = fopen("mydbf.dbf",12) && Try a RW open
>if handle > 0 && Not in use elsewhere
>   =fclose(handle)
>   use mydbf exclusive
>endif

Much more elegant than what I did, which <b>was</b>:

local lcOldError, llFailed
lcOldError = on('error')
on error llFailed = .t.
use mytable excl
if !empty(lcOldError)
   on errer &lcOldError
else
   on error
endif
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform