-- 作者:cqlpjks
-- 发布时间:2015/5/16 8:55:00
-- [求助]保留小数问题?
要求:项目=“贡献率” ‘liem1’列小数位数保留两位,项目=“人数” ‘liem1’列为整数。如何修改代码?请指教。谢谢!
Dim liem1s() As String = {"目标1","目标2","目标3","目标4","目标5","目标6","目标7","目标8","目标9","目标10","目标11","目标12"} For Each liem1 As String In liem1s If dr("项目") = "贡献率 %" Then DataTables(bm).DataCols(""& liem1 &"").SetFormat("0.00") End If Next 此主题相关图片如下:小数位数.png
[此贴子已经被作者于2015/5/16 8:55:02编辑过]
|