Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I create classes in a vcx programatically?
Message
From
21/12/2006 03:51:16
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
20/12/2006 15:54:31
Bill Drew
Independent Consultant
Chicago, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01179343
Message ID:
01179462
Views:
7
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform