jeudi 8 octobre 2015

Multiple if else in Crystal Report

I had a case with multiple if else in formula of Crystal Report

`Stringvar name := Right({vRptAuctionTotalsByBlock.BlockName},2)
Stringvar result :=""
If ToText(Trim(name)) = 'A'
Then result := '98'
Else
    If ToText(Trim(name)) = 'B'
    Then result :='99'
    Else result := name;
result`

When I saved it, it showed me the message

`the remaining text does not appear to be part of the formula`

How can I fix it? Thanks.

P/s: Where can I find a document to learn how to use Crystal Report?

Aucun commentaire:

Enregistrer un commentaire