Re: Variable formula creation in vb.net

Tech-Archive recommends: Speed Up your PC by fixing your registry



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
>>


.



Relevant Pages

  • Re: simple binding of controls to object properties - refresh cont
    ... Thanks again Chris for looking into this.! ... Still I think I prefer just manually reseting the bindings, ... public string Ting ... textbox BobTheBound = new TextBox; ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: new for regular expression in Perl
    ... > string, the original file will not change.) ... >> Thanks Chris and others for the information. ... DSL? ...
    (perl.beginners)
  • Re: Programmers unpaid overtime.
    ... > problem in this reasoning, ... > Chris Sonnack presented some interesting numbers. ... Over and above the individual cache for a string ... > a PowerString instance and its string. ...
    (comp.programming)
  • Re: partial file name string search
    ... Chris wrote: ... even using a doss driven exe which takes a partial string ... You can also use the search feature built into Explorer. ...
    (microsoft.public.win2000.general)
  • Re: Bug in Replace function?
    ... "Peter R. Fletcher" wrote: ... Safer would be to use Mid$ to split the string into two halves at the ... It is a matter of knowing the business rules. ... 'Which will replace only the first occurance and return the entire string. ...
    (microsoft.public.access.modulesdaovba)