Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Efficient coding problem
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Efficient coding problem
Miscellaneous
Thread ID:
00442342
Message ID:
00442342
Views:
47
Hi everyone,

I'm writting a statistics program and this is my problem: I want to create 3 sets of statistical calculated values: for source='S' field names should end on 'pur' - purchase, for source='M' 'ref' - refinance, and for no matter that source (eithier S or M) 'all'.

Currently I didn't find a better solution, than create RunAll, RunPur and RunRef functions, which are almost identical except I use different appropriate field names and in two first cases where condition. Unfortunately, this makes my life very hard, if I want to change code. I have to make the same changes in all three functions.

Do you have better ideas for me? I'd like to avoid macros if possible.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform