datacolumn.expression

  • Thread starter Thread starter Victor
  • Start date Start date
V

Victor

hi guys
i want to write an expression to calc values for one column. i want to do if
(col1+col2) > 0 then col = col3/(col1+col2) else col = 0;
i write an expression like col.expression = "IIF ((col1+col2) > 0
,col3/(col1+col2),0 )"; but i always get a dividedbyzero exception.
can anyone tell me why this happen?
cheers
victor
 
Back
Top