开发者

Convert Decimal to int in Crystal Report Formula

i have used formula to generate a RowNumber for each Record formula is like this:

shared numbervar rownum; rownum := rownum + 1; rownum; But it displays decim开发者_如何学运维al numbers : 1.00, 2.00, 3.00, 4.00 i want to display only Int numbers in RowNumber : 1,2,3,4,5

how can i do this?

Thanks in Advance


Select the formula field on the canvas, then click the Decrease Decimals toolbar icon twice.

You should the RecordNumber field instead of incrementing a variable--much less work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜