Foxtable(狐表)用户栏目专家坐堂 → 代码求助!


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

主题:代码求助!

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110574 积分:562760 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/1/12 12:07:00 [显示全部帖子]

Dim v As Integer = val(e.Sender.Text)
Dim r() As String = {"命宫","兄弟","夫妻","子女","财帛","疾厄","迁移","仆役","官禄","田宅","福德","父母"}
If r IsNot Nothing
    Dim idx As Integer = 1
    If v >= 1 AndAlso v <= 12 Then
        For i As Integer = v-1 To 0 Step -1
            e.Form.Controls("Label" & idx).text = r(i)
            idx += 1
        Next
        For i As Integer = 11 To v Step -1
            e.Form.Controls("Label" & idx).text = r(i)
            idx += 1
        Next  
    End If
End If

 回到顶部