General information
Category:
Coding, syntax & commands
Title:
Error Event in a form
Hi,
Is it possible, like with the "ON ERROR" command, to redefine or re-direct the Error Event of a form? Here's why: I'm trying to open a table in 'exclusive' mode inside an object and I don't want any error messages or anything like that if it fails. I'd like to convert this piece of code to work inside my object:
LOCAL lcOldError, lnError
lcOldError = ON("ERROR")
ON ERROR lnError = ERROR()
USE lcTablePath IN 0 EXCLUSIVE
ON ERROR &lcOldError
IF VARTYPE(lnError) == "L" THEN
RETURN .T.
ELSE
RETURN .F.
ENDIF
Is it possible?
Thanks a lot in advance, Stephane.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only