Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter and 'The BeforeUpdate event has failed' me
Message
De
02/06/2003 15:26:54
 
 
À
30/05/2003 17:51:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00794091
Message ID:
00795371
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform