Calculation Expressions without '$'

Jul 31, 2008 at 12:19 AM
Edited Jul 31, 2008 at 3:59 PM
I would like to have chained or nested expressions. That is I want expression to use other expressions for the calculations. The Calculation engine comes close so far as I understand, but it prepends the '$'. Is there a way to not require that prepended '$'? Also is there a way to have the expression be interchangeable with the concept of a typed variable?

We are thinking of using Flee for our WF properties. The built in stuff will not work for us. We want the users to be able to either specify a value for the property OR an expression. Then the expression engine would resolve the value at execution.

Thanks.
Jan 14, 2009 at 7:37 AM
Edited Jan 14, 2009 at 7:41 AM
 Hi,
 Im also bump into the same dilema, 
 
 I solved it by like this

 1) define your variables first
 _employee_name = "Jane Doe"
 ...
 _employee_salary = 60.00
 _days_worked  = 6

 2) define your expressions with the IGenericExpression Interface 

      Dim e As IGenericExpression(Of Double) = context.CompileGeneric(Of Double)(oValue.ToString())    

 3) Go though a loop of all of your expression names and value collections
     and if you bump into a IGenericExpression then do the generic evaluate for it
     ....
 as far as i know there is no class for using epressions with the '$'
 but that's what i did in my case  see my thread on the subject "Custom Expression Engine for Payroll"
 letme know if you need to post some sample code to clarify it

   Best Regards, and Happy New Year
  Arturo Ruvalcaba