Hi,
My guess is that you're having an illegal character in your code, because
it's all screwed when reading your mail. In the Reply however it shows ok.
I would code it like this:
LOCAL llReturn
Try
*- If an error occurs, the rest of the code until the catch is
ignored....
Open Database mydata Exclusive
Set Database To mydata
Pack Database
llReturn = .T.
Catch
=Messagebox("Other users are currently logged in.",64,c_messagetitle)
Endtry
Return llReturn
Regards,
Sietse Wijnker
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Ajoy Khaund
Verzonden: dinsdag 23 oktober 2007 8:55
Aan: [EMAIL PROTECTED]
Onderwerp: TRY CATCH
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"
[excessive quoting removed by server]
_______________________________________________
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]@sw-software.nl
** 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.