Foxtable(狐表)用户栏目专家坐堂 → 关于简码的问题


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

主题:关于简码的问题

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


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

 If e.DataCol.Name = "第一列" Then
    If e.newValue.Length > 3 Then
        Dim str As String = GetPy(e.NewValue.SubString(3),True)
        If str.Length > 6 Then str = str.SubString(0,6)
        e.DataRow("第二列") = str.ToUpper
    Else
        e.DataRow("第二列") = Nothing
    End If
Else
    e.DataRow("第二列") = Nothing
End If


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


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

If e.DataCol.Name = "第一列" Then
    If e.newValue.Length > 3 Then
        Dim str As String = GetPy(e.NewValue.SubString(3),True)
        If str.Length > 6 Then str = str.SubString(0,6)
        e.DataRow("第二列") = str.ToUpper
    Else
        e.DataRow("第二列") = Nothing
    End If
End If

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


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

DataColChanged事件

 

'''...
If e.DataCol.Name = "第一列" Then
    If e.DataRow.IsNull("第一列") = False
        Dim str As String = e.NewValue.Replace("(", "").replace(")", "").Replace("(", "").replace(")", "")
        If str.Length > 3 Then
            str = GetPy(str.SubString(3),True)
            If str.Length > 6 Then str = str.SubString(0,6)
            e.DataRow("第二列") = str.ToUpper
        Else
            e.DataRow("第二列") = Nothing
        End If
    Else
        e.DataRow("第二列") = Nothing
    End If
End If


 回到顶部