以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]同表引用问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=153457)

--  作者:有点蓝
--  发布时间:2020/8/11 16:16:00
--  
参考:http://www.foxtable.com/webhelp/topics/0625.htm

If e.DataCol.Name = "摘要" orelse e.DataCol.Name = "本金" Then 
    If e.DataRow.IsNull("本金") orelse e.DataRow.IsNull("摘要") orelse e.DataRow("摘要") <> "开户" Then
        e.DataRow("入股金额") = Nothing 
    
Else
        e.
DataRow("
入股金额") = e.DataRow("本金")
    End
 If
End
 
If

--  作者:有点蓝
--  发布时间:2020/8/13 11:29:00
--  
这个代码又问题的,把这个帮助先仔细看看:http://www.foxtable.com/webhelp/topics/0224.htm

Select Case e.DataCol.Name
    Case "摘要","本金","占用费"
        Select e.DataRow("摘要")
            Case "开户" Then
                e.DataRow("入股金额") = e.DataRow("本金")
            Case "入股" Then
                e.DataRow("入股金额") = e.DataRow("本金")
            Case "结算占用费" Then
                e.DataRow("入股金额") = e.DataRow("占用费")
            Case "退股" Then
                e.DataRow("退股金额") = e.DataRow("本金")
            Case "销户" Then
                e.DataRow("退股金额") = e.DataRow("本金")
            Case Else
                e.DataRow("入股金额") = Nothing
                e.DataRow("退股金额") = Nothing
        End Select
End Select

--  作者:有点蓝
--  发布时间:2020/8/13 13:31:00
--  
1、看看:http://www.foxtable.com/webhelp/topics/2242.htm
2、有很多重复而无谓的判断