Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when generating RI
Message
 
À
17/04/2003 08:25:06
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00778363
Message ID:
00779226
Vues:
39
>Anyway's, I would not spend my energy in the OLD vfp RI builder, just find out what's wrong with TAXRI and we'll work to a solution.

Walter,

I did find out what was wrong and I'm honestly surprised that TaxRI ever worked for anyone.

When TaxRI generates RI and creates the triggers for the tables, it calls _handleRI with the lower case of the table name (i.e. _handleRI("Ins_tablename") ). When the comparisons are made in the huge DO CASE block, an exact comparison is done (via "==") against the passed argument and a string with the table name's first character capitalized (i.e. CASE cRITable == "Ins_Tablename"). Since you are doing an exact comparison, the case doesn't match on the first character of the table name and it drops out of the DO CASE structure, never enforcing the RI.

Are you positive this worked?

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform