Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice
Message
De
14/06/2001 09:24:12
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00519257
Message ID:
00519274
Vues:
18
>The way I handle apps that have many rules, especially ones that the rules may change, is via a table. I would suggest that you have a table with a structure like the following:
>
>Column Field Type
>primary key I
>module C(10)
>condition M
>errormsg C(100) or a Memo
>
>This way, based on the form/module that you are in, you can query this table for all of the pertinant rules. Once the rules have been retrieved, you can issue an EVAL() on the condition value to determine if the data passes/fails the rule.
>
>For ease of updating, you may want to make this a free table.

Kevin,

Doug is right. In recent years I have been involved in attorney reinsurance and actuarial calculations and using tables is a great way to keep everything straight.

Renoir
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform