开发者

Convert Decimal to int in Crystal Report Formula

开发者 https://www.devze.com 2023-04-08 01:50 出处:网络
i have used formula to generate a RowNumber for each Record formula is like this: shared numbervar rownum;

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

精彩评论

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