In the INIT of a form I need to check if the dbc can be opened exclusively.
If Yes proceed else a message to try later as other users are logged in.
I am not sure of this TRY CATCH snippet.
Try
Open Database mydata Exclusive
Set Database To mydata
Catch
lcFlag = .T.
=Messagebox("Other users are currently logged in.",64,c_messagetitle)
Endtry
If lcFlag = .T.
Return .F.
Else
Pack Database
Endif
Can anyone just help me. Something similar in Vfp6 was not a problem. A
direct rebuild with Vfp8/9 did not work well. I wonder why.
TIA
Ajoy Khaund
Neamati Road
Near Bhogdoi Bridge
Jorhat 785 001
Assam, India
Tel: 91-376-2351288
Cell: 91-94350-92287
Mail: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Walking on water and developing software from a specification are easy if
both are frozen."
- Edward V. Berard, "Life-Cycle Approaches"
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.