Re: Variable formula creation in vb.net
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 9 Dec 2005 11:26:42 -0500
Sure Chris. Remember that the expression is going to be a string. Figure out
the business rules for creating your formulas, and then write a function
that parses the string according to those rules, and executes the business
logic from it.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.
"Chris Davoli" <ChrisDavoli@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F91923E0-3E6B-4F3C-9AB7-24D1B0445C9F@xxxxxxxxxxxxxxxx
> BTW - example would be A + B = C
> each variable or operator will be a record in SQL server.
>
> --
> Chris Davoli
>
>
>
> "Chris Davoli" wrote:
>
>> I've got a requirement to create formulas for calculations. The problem
>> is
>> that the formulas can be changed by the user. I plan on putting the
>> formulas
>> on SQL Server and each varable/operator as a record. Then I can just
>> replace
>> the variable with the number and calculate the result. That way the
>> formula
>> can be changed by the client thru admin pages. Essentially I want to know
>> if
>> I can put together an formula expression as a string and use this to
>> calculate my result?
>>
>> --
>> Chris Davoli
>>
.
- Prev by Date: using Serialport in visual basic
- Next by Date: Re: Variable formula creation in vb.net
- Previous by thread: using Serialport in visual basic
- Next by thread: Re: Variable formula creation in vb.net
- Index(es):
Relevant Pages
|