CRYSTAL REPORT 9 - FORMULA
Boa tarde , alguém poderia me informar se esta condição pode ser usada para gerar uma formula no crystal report 9 , pois coloquei e está dando erro.
if isnull{AuxRelDiario.TotalCreditos} then
(({@UnboundCurrency3} - {AuxRelDiario.TotalDebitos})
else
if isnull{AuxRelDiario.TotalDebitos} then
(({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos})
else
(({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos}) - {AuxRelDiario.TotalDebitos})
end if
end if
Grata
Cris
if isnull{AuxRelDiario.TotalCreditos} then
(({@UnboundCurrency3} - {AuxRelDiario.TotalDebitos})
else
if isnull{AuxRelDiario.TotalDebitos} then
(({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos})
else
(({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos}) - {AuxRelDiario.TotalDebitos})
end if
end if
Grata
Cris
Cristiane,
Quem vai receber o resultados das operações ?
Se for pra retornar o resultado das operações, não esqueça de colocar:
formula = ({@UnboundCurrency3} - {AuxRelDiario.TotalDebitos})
um campo formula no Crystal funciona tal qual uma função, onde o tipo do resultado será o mesmo do primeiro valor movido para ele.
Espero ter ajudado.
[]'s
Quem vai receber o resultados das operações ?
Se for pra retornar o resultado das operações, não esqueça de colocar:
formula = ({@UnboundCurrency3} - {AuxRelDiario.TotalDebitos})
um campo formula no Crystal funciona tal qual uma função, onde o tipo do resultado será o mesmo do primeiro valor movido para ele.
Espero ter ajudado.
[]'s
Detalhe que tem parênteses faltando aÃ...
Fica assim:
if isnull({AuxRelDiario.TotalCreditos}) then
Formula = ({@UnboundCurrency3} - {AuxRelDiario.TotalDebitos})
else
if isnull({AuxRelDiario.TotalDebitos}) then
Formula = ({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos})
else
Formula = (({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos}) - {AuxRelDiario.TotalDebitos})
end if
end if
Melhorou?
Fica assim:
if isnull({AuxRelDiario.TotalCreditos}) then
Formula = ({@UnboundCurrency3} - {AuxRelDiario.TotalDebitos})
else
if isnull({AuxRelDiario.TotalDebitos}) then
Formula = ({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos})
else
Formula = (({@UnboundCurrency3} + {AuxRelDiario.TotalCreditos}) - {AuxRelDiario.TotalDebitos})
end if
end if
Melhorou?
Tópico encerrado , respostas não são mais permitidas