Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I create classes in a vcx programatically?
Message
De
21/12/2006 03:51:16
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
20/12/2006 15:54:31
Bill Drew
Independent Consultant
Chicago, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01179343
Message ID:
01179462
Vues:
8
>The procecures are created from tabular data. -- case statements based on logic that must be evaluated sequentially -- Since the rules are based on many different variables, the determination of a result is not as simple as a single or even multi key lookup. I created an fxp file that produced a huge preformance improvement. Now it isseven times faster than a looping structure that sequentially evaluates sets of rules.

I went exactly the same route as you did for a rule engine trying to establish the probability of doubles in adress management. The rule are different / differently weighted depending on the nature of the adresses and the intended use of the database and a singular prg is generated at program start depending on the settings in a config file.

As long as you stay in the prg format you have IMHO more benefits:
- the worker function/method can be a function, which is called faster.
- you can define/write out help functions
- I personally find #define handling easier to follow if written explicitely (which I use here as well)
- can be easily checked with any ASCII-editor while the program is running
- you still can create object based routines.

HTH

thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform