以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 金额 默认显示为 *.** (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=104486) |
-- 作者:coch2004 -- 发布时间:2017/7/30 13:34:00 -- 金额 默认显示为 *.** 请教各位: DrawCell事件 If e.Col.name="Remarks" Then If e.Row("Remarks").contains("3.75") Then \' 想把3.75 改成类似通配符的格式 如:#.## 请问代码如何写? e.Text="***" End If End If |
-- 作者:有点甜 -- 发布时间:2017/7/30 15:48:00 -- If e.Col.name="Remarks" Then
Dim str As String = e.text
str = System.Text.RegularExpressions.Regex.Replace(str, "[0-9]", "#") e.Text= str
End If
|
-- 作者:coch2004 -- 发布时间:2017/7/30 20:51:00 -- 谢谢! |