What if we want to use DisplayString Method in Crystal Report but we want to apply this only on the basis of some parameter value ! ? Like we will pass in parameter whether the use can see the purchase rate or not ! If not then we will print Asterisk instead of actual rate else do nothing !

有帮助吗?

解决方案

Assumes a boolean parameter named {?hide}:

If {?hide} Then
    Replace(Space(Len(ToText(CurrentFieldValue,"#"))), " ", "*")
Else
    ToText(CurrentFieldValue)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top