Guest User

Untitled

a guest
Jun 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. cOldError = ON("ERROR")
  2. ON ERROR *
  3. USE MyTable IN 0 EXCLUSIVE
  4. lSuccess = used("MyTable")
  5. ON ERROR &cOldError
  6.  
  7. if lSuccess ...
  8.  
  9. nFHdl = FOPEN("myfile.dbf", 1) && 1 tries to open the file for writing
  10. IF nFHdl > 0 THEN
  11. FCLOSE(nFHdl)
  12. USE myfile.dbf exclusive
  13. ELSE
  14. = messagebox("Can't open Exclusive")
  15. ENDIF
Add Comment
Please, Sign In to add comment