顯示具有 [Crystal report] 標籤的文章。 顯示所有文章
顯示具有 [Crystal report] 標籤的文章。 顯示所有文章

[Crystal report] 文字轉數字

tonumber()

如果出現"The string is non-numeric"
代表裡面有空值 or null

可以使用以下辨斷
if not (isnumeric({SCORELOG.ATTENDSCORE})) then
0
else
tonumber({SCORELOG.RECOUNTSCORE})+tonumber({SCORELOG.ADDSCORE})


參考
http://www.tek-tips.com/viewthread.cfm?qid=1076747&page=7