以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]请问一个数值转换的问题!!! (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=19917) |
-- 作者:gaoyong30000 -- 发布时间:2012/5/24 22:52:00 -- [求助]请问一个数值转换的问题!!! 1,2,3,4,5
如何转换成 一,二,三,四,五
如果用到内部函数 请问如何写?
if = 1 then = 一 elseif =2 then = 二 end if
这样??? [此贴子已经被作者于2012-5-24 22:52:42编辑过]
|
-- 作者:程兴刚 -- 发布时间:2012/5/24 23:34:00 -- 这是一个很简单的问题,按照您的功力绝不再话下,还是留给您做作业吧! |
-- 作者:blackzhu -- 发布时间:2012/5/25 8:26:00 -- Dim cs() As String = New String() { "1","2","3","4","5","6","7","8","9","10"}
判断自己加吧! |
-- 作者:gaoyong30000 -- 发布时间:2012/5/25 9:52:00 -- 恩 搞定了 多谢诸位!
Dim Val As Integer = Args(0)
Dim cs() As String = New String() { "1","2","3","4","5","6","0"} Dim ns() As String = New String() {"一","二","三","四","五","六","日"} For n As Integer = 0 To cs.Length -1 If cs(n) = Args(0) Then Return ns(n) End If Next Functions.Execute("数值转换",d.DayOfWeek) |