Re: Error hanlding
From: Patrick Tura (patrick_at_kff.ph)
Date: 04/17/04
- Next message: Jochen Kirstaetter: "Re: Web app header/cookie sleuthing?"
- Previous message: Sarah: "GetWindowText - Windows API"
- In reply to: Altman: "Re: Error hanlding"
- Next in thread: Stefan Wuebbe: "Re: Error hanlding"
- Reply: Stefan Wuebbe: "Re: Error hanlding"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 17 Apr 2004 17:47:19 +0800
Hi!
Thanks a lot for your reply.
I am still using VFP 6.0
Thanks.
/patrick
"Altman" <NotGiven@SickOfSpam.com> wrote in message
news:eOXOuP7IEHA.2656@TK2MSFTNGP11.phx.gbl...
> what version of VFP are you on? If you are on version 8 you can use the
TRY
> CATCH routine.
> TRY
> USE verification in 0 Exclusive
> CATCH to loError
> **if there is an error it will go here and you can pop up a message to
> say whatever you want
> FINALLY
> ENDTRY
>
>
> "Patrick Tura" <patrick@kff.ph> wrote in message
> news:uPDBdU6IEHA.2524@TK2MSFTNGP11.phx.gbl...
> > Hi!
> >
> > I got one table that is necessary to let only one user to open at a
time.
> I
> > need to find out if the table is occupied or not before the user can
> execute
> > a command 'use \\kffserver\kffmaindbf\verification.dbf exclusive ' so
> > that I can give a message to the user that the table is occupied and
tell
> > him to try later instead of file access is denied or give this command
> > " messagebox("Verification is occupied, please RETRY",0,"Busy")".
> >
> > I was trying to use this command but this seems not to work over the
> network
> > maybe valid only for the local data environment?
> >
> > if used('verification')=.F.
> > use \\kffserver\kffmaindbf\verification.dbf exclusive
> > else
> > messagebox("Verification is occupied, please RETRY",0,"Busy")
> > endif
> >
> > Thanks a lot.
> >
> > /patrick
> >
> >
>
>
- Next message: Jochen Kirstaetter: "Re: Web app header/cookie sleuthing?"
- Previous message: Sarah: "GetWindowText - Windows API"
- In reply to: Altman: "Re: Error hanlding"
- Next in thread: Stefan Wuebbe: "Re: Error hanlding"
- Reply: Stefan Wuebbe: "Re: Error hanlding"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|