Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
USE EXCLU in multiuser system?
Message
From
23/11/1999 16:11:06
 
 
To
23/11/1999 15:18:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00294535
Message ID:
00294610
Views:
26
>WHat is your exact code?

Well, I've got it working now. What I _was_ doing in a form Valid() method:

...
THISFORM.llUseError=.F.
USE mytable EXCLU ALIAS xxdummy
IF !THISFORM.llUseError
do stuff
ELSE
alert user
ENDIF
...

and in the FORM's Error() method:

IF nError=3
THISFORM.llUseError=.T.
ELSE
=DODEFAULT() &&my error handler.
ENDIF

*=============*
When I do it directly in the method, as you suggested, this works:

jcOldErr=ON("ERROR")
jlError=.F.
ON ERROR jlError=.T.
USE mytable EXCLU ALIAS xxdummy
IF !jlError
do stuff
ELSE
alert user
ENDIF
ON ERROR &jcOldErr
*=============*

Don't know why the first doesn't work...

Thanks, Mike.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform