Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapter and 'The BeforeUpdate event has failed' me
Message
From
02/06/2003 15:26:54
 
 
To
30/05/2003 17:51:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00794091
Message ID:
00795371
Views:
19
Hi Aleksey,
just to let you know...
the problem that I mentioned I solved in this way:

Instead of this code in BeforeUpdate event:

IF valorunitario = 0
MESSAGEBOX( "Valor não pode ser zero")
RETURN .F.
ENDIF

I am using this code:

IF valorunitario = 0
cUpdateInsertCmd = "RAISERROR('Valor nao pode ser zero',16,1)"
ENDIF

So, I replace the command that VFP will send to SQL, raising the error there. It work if you use ODBC.

Thanks.
Ricardo.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform