以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  表达式列问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=65648)

--  作者:dsj001
--  发布时间:2015/3/19 20:20:00
--  表达式列问题
在生成性别表达式列怎能样从身份证列中来判断男女?
--  作者:有点甜
--  发布时间:2015/3/19 20:29:00
--  

 不能用表达式列,编写Datacolchanged事件

 

If e.DataCol.Name = "第二列" Then
    If e.NewValue = Nothing Then
        e.DataRow("第三列") = Nothing
    Else
        e.DataRow("第三列") = ReadSex(e.NewValue)
    End If
End If


--  作者:dsj001
--  发布时间:2015/3/19 20:35:00
--  
基础差了,看了一头雾水?
--  作者:有点甜
--  发布时间:2015/3/19 20:37:00
--  

http://www.foxtable.com/help/topics/1445.htm

 

http://www.foxtable.com/help/topics/1469.htm

 

 


--  作者:dsj001
--  发布时间:2015/3/19 21:40:00
--  

在表的属性中加事件用Datacolchanged

If e.DataCol.Name = "第二列" Then
    If e.NewValue = Nothing Then
        e.DataRow("第三列") = Nothing
    Else
        e.DataRow("第三列") = ReadSex(e.NewValue)
    End If
End If

 

谢谢!