Foxtable(狐表)用户栏目专家坐堂 → 求指教,代码如何编写


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

主题:求指教,代码如何编写

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/12/31 11:09:00 [显示全部帖子]

Dim r As Row = Tables("表A").Current
Dim Result As DialogResult
Result = Messagebox.Show("是否要开始新的服务记录?","提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.yes Then
    If r IsNot Nothing Then
    Dim br As Row = Tables("表B").AddNew()
        br("注意事项") = r("内容")
        br.Save()
    End If
Else
    Dim br As Row = Tables("表B").Current
    If r IsNot Nothing Then
        br("注意事项") = br("注意事项") & r("内容")
        br.Save()
    End If
End If

 回到顶部