以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]怎么自动在输入的数字后面加“万元”  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=83808)

--  作者:349289451
--  发布时间:2016/4/17 16:14:00
--  [求助]怎么自动在输入的数字后面加“万元”
怎么自动在输入的数字后面加“万元”       很多订单数值都很大有些数值  能不能简化成   XX万元   XX千万  这样的显示方式
--  作者:36792209
--  发布时间:2016/4/17 16:57:00
--  

If e.DataCol.Name = "数字列" Then
    If e.NewValue <> Nothing Then
        e.newValue = e.NewValue & "万元"    

End If
End If

[此贴子已经被作者于2016/4/17 16:58:05编辑过]

--  作者:大红袍
--  发布时间:2016/4/17 23:43:00
--  

编写 drawcell 事件

 

If e.Col.name = "车号" AndAlso e.text > "" Then
    e.text = e.text & "万元"
End If