Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Messages...
Message
De
04/04/2000 04:10:09
 
 
À
03/04/2000 17:18:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00354617
Message ID:
00354860
Vues:
14
Hi Favio.

>> How can I personalize the error messages, when it fails some component of the referential integrity in the update of a database ? <<

You need to use AERRORS() to check for why the tableupdate failed and personalize your message there:
IF !TABLEUPDATE( 0, .F., 'SomeAlias' )
   AERROR( laErrors )
   *** Check for trigger failed
   IF laErrors[1] = 1539
      DO CASE
         *** Insert Trigger
         CASE laErrors[5] = 1
         
         *** Update Trigger
         CASE laErrors[5] = 2
         
         *** Delete Trigger
         CASE laErrors[5] = 3
      ENDCASE
   ENDIF
ENDIF
HTH

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform