Foxtable(狐表)用户栏目专家坐堂 → [求助]转换遇到问题


  共有14950人关注过本帖平板打印复制链接

主题:[求助]转换遇到问题

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


加好友 发短信 一级勋章
等级:MVP荣誉狐 帖子:5154 积分:31434 威望:0 精华:8 注册:2008/9/8 12:27:00
  发帖心情 Post By:2009/12/13 21:07:00 [只看该作者]



DataTables("课时名单").DataRows.Clear()
For Each drkc As DataRow In DataTables("课程表").DataRows
    for i as integer = 1 to Tables("课程表").cols.count -1  
        if drkc(Tables("课程表").cols(i).name) isnot nothing and drkc(Tables("课程表").cols(i).name) <> "班级"  then                                      
                   if drkc(Tables("课程表").cols(i).name) <> "" then
                       Dim drmd As DataRow
                       drmd = DataTables("课时名单").DataRows.AddNew()
                       drmd("星期") = Tables("课程表").cols(i).name.split("_")(0)
                       drmd("姓名") = drkc(Tables("课程表").cols(i).name)
                       drmd("计分") = 1
                   end if   
          end if
     next
next
Messagebox.Show("处理完毕!")
[此贴子已经被作者于2009-12-13 21:12:24编辑过]

 回到顶部
总数 17 1 2 下一页