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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top