开发者

Crystal reports formula

开发者 https://www.devze.com 2023-02-05 17:19 出处:网络
if{((tonumber({BudgetTemplateField.Expr1})- tonumber({BudgetTemplateField.Expr3})) > tonumber({BudgetTemplateField.Expr1}))}
if{((tonumber({BudgetTemplateField.Expr1})- tonumber({BudgetTemplateField.Expr3})) > tonumber({BudgetTemplateField.Expr1}))}
then 
{
    ((tonumber({BudgetTemplateField.Expr1}) - tonumber({BudgetTemplateField.Expr3})/tonumber({BudgetTemplateField.Expr1}))*100)    
} 
else  
{
    开发者_运维知识库@add
}

//please provide solution for this error


I think the code should be like this:

if((tonumber({BudgetTemplateField.Expr1})- tonumber({BudgetTemplateField.Expr3})) > tonumber({BudgetTemplateField.Expr1}))
then 
{
    ((tonumber({BudgetTemplateField.Expr1}) - tonumber({BudgetTemplateField.Expr3})/tonumber({BudgetTemplateField.Expr1}))*100)    
} 
else  
{
    @add
}

i think it will work.reply.

0

精彩评论

暂无评论...
验证码 换一张
取 消