Foxtable(狐表)用户栏目专家坐堂 → 简化代码求助 如何简化一下代码


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

主题:简化代码求助 如何简化一下代码

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


加好友 发短信 一级勋章
等级:狐仙 帖子:9875 积分:57590 威望:0 精华:15 注册:2008/9/1 9:45:00
  发帖心情 Post By:2020/10/22 11:09:00 [显示全部帖子]

Select Case E.DataCol.Name
    Case "缴费编号"
        Dim PR As DataRow = DataTables("课程缴费表").Find("缴费编号 = " & e.NewValue)
        If pr IsNot Nothing Then
            Dim ColNames() As String ="学号,姓名,收费名称,科目,等级,期限,总周数,课时数合计".split(",")
            For Each colName As String In colnames
                e.DataRow(colName) = pr(colName)
            End If
        End If
End Select


 回到顶部