Foxtable(狐表)用户栏目专家坐堂 → [求助]请教各位大神,如何编写如QQ等级一样的等级计算


  共有3515人关注过本帖树形打印复制链接

主题:[求助]请教各位大神,如何编写如QQ等级一样的等级计算

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110590 积分:562846 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/4/6 14:23:00 [显示全部帖子]

Dim s1() As String = {"a","b","c","d"}
Dim s2() As String = {"100","500","1500","4500"}
Dim d As Integer = 6650
Dim s As String = ""
For i As Integer = s1.length - 1 To 0 Step -1
    Dim d1 As Integer = math.Floor(d / s2(i))
    d = d Mod s2(i)
    s = s & d1 & s1(i) & ","
Next
s = s & d
Output.Show(s)

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110590 积分:562846 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/4/6 14:38:00 [显示全部帖子]

参考:http://www.foxtable.com/webhelp/topics/0625.htm

If e.DataCol.Name = "第一列" Then '如果更改的是身份证号码列
    If e.DataRow.IsNull("
第一列"Then '身份证号码是否为空
        e.
DataRow("
第二列") = Nothing '如果为空,则清除出生日期
    
Else
Dim s1() As String = {"a","b","c","d"}
Dim s2() As String = {"100","500","1500","4500"}
Dim d As Integer = e.DataRow("第一列")
Dim s As String = ""
For i As Integer = s1.length - 1 To 0 Step -1
    Dim d1 As Integer = math.Floor(d / s2(i))
    d = d Mod s2(i)
    s = s & d1 & s1(i) & ","
Next
s = s & d
e.DataRow("第二列") = s
    End If
End
 
If

 回到顶部