473,385 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Programming with ever-changing formulas

Has anyone had experience programming with functions or
formulas that occasionally change? We're working on a
pricing app and it would be straight-forward enough to
build it with a known formula (price = a+b+c/d), but we
have to account for business conditions that change the
formula.

Does anyone know how to do this without recompiling?

Thanks.
Nov 22 '05 #1
3 1235
How about compiling this on startup and then use the newly compiled
version? You'll find a sample for this on the web, sorry I can't
remember where.

Tosch

On Mon, 3 May 2004 11:42:51 -0700, "neil"
<an*******@discussions.microsoft.com> wrote:
Has anyone had experience programming with functions or
formulas that occasionally change? We're working on a
pricing app and it would be straight-forward enough to
build it with a known formula (price = a+b+c/d), but we
have to account for business conditions that change the
formula.

Does anyone know how to do this without recompiling?

Thanks.


Nov 22 '05 #2
I would build an expression evaluator into the app. The attached link
should give you something to start with.

http://www.codeproject.com/csharp/runtime_eval.asp

HTH
Les Smith
http://www.knowdotnet.com

"neil" <an*******@discussions.microsoft.com> wrote in message
news:79****************************@phx.gbl...
Has anyone had experience programming with functions or
formulas that occasionally change? We're working on a
pricing app and it would be straight-forward enough to
build it with a known formula (price = a+b+c/d), but we
have to account for business conditions that change the
formula.

Does anyone know how to do this without recompiling?

Thanks.

Nov 22 '05 #3
Wouldn't it be easier to add a administrator \ Manager
section to your program and save your formulas there.
You would just have to make sure you made it idiot proof.
It is what I do with sales tax and wholesale costs.
"neil" <an*******@discussions.microsoft.com> wrote in message
news:79****************************@phx.gbl...
Has anyone had experience programming with functions or
formulas that occasionally change? We're working on a
pricing app and it would be straight-forward enough to
build it with a known formula (price = a+b+c/d), but we
have to account for business conditions that change the
formula.

Does anyone know how to do this without recompiling?

Thanks.

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: nobody | last post by:
This article is posted at the request of C.W. Yang who asked me to detail my opinion of Lisp, and for the benefit of people like him, who may find themselves intrigued by this language. The...
65
by: Roger Smythe | last post by:
A means for the progressive decomposition a problem space into increasingly simpler component parts such that these component parts represent higher levels of conceptual abstraction, and are...
12
by: G. | last post by:
Hi all, During my degree, BEng (Hons) Electronics and Communications Engineering, we did C programming every year, but I never kept it up, as I had no interest and didn't see the point. But now...
2
by: Hans Kamp | last post by:
As a programming exercise I try to program a game. In my case it is called BugEater. The purpose is that you are a snake. It moves automatically but you can control it with the keys on your...
4
by: Java Challenge | last post by:
I am trying to work hard to become a programmer and eventually get a job as a programmer, I have a low paying job at the moment as technical support and a family to maintain. 1 - I started to...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
8
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In...
9
by: Smithers | last post by:
Please consider this humble method: public void ResetCounters() { m_TotalExceptionsDetected = 0; m_TotalMessagesSent = 0; } Given no further information, would you wrap those two lines in a...
29
by: Martin Schmied | last post by:
Dear folks I'm looking for good sites/material for this topic: Introduction to programming, using Javascript. So, not introduction to programming *in" Javascript. Well, I guess this would be...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.