以文本方式查看主题

-  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=62070)

--  作者:tungwun
--  发布时间:2014/12/24 21:42:00
--  [求助]
请问如可做 A列为逻辑列,B列为付款列,A列打勾后,B列自动输入"已付款",A列没有打勾后,B列自动输入"未付款",

datacolchanged 事件
if e.datacol.name="A列" then
   if e.datarow("A列") then
if e.datacol.name="A列" False
   if e.datarow("A列") False
         e.datarow("B列")="已付款"
         e.datarow("B列")="未付款"
   end if
end if
这个代码错误?

--  作者:有点甜
--  发布时间:2014/12/24 21:45:00
--  
If e.DataCol.name="A列" Then
    If e.DataRow("A列") = False Then
        e.DataRow("B列")="已付款"
    Else
        e.DataRow("B列")="未付款"
    End If
End If

--  作者:tungwun
--  发布时间:2015/1/22 11:54:00
--  请问这代码可否加入锁定行
请问这代码可否加入锁定行检?
If e.DataCol.name="A列" Then
    If e.DataRow("A列") = False Then
        e.DataRow("B列")="已付款"
    Else
        e.DataRow("B列")="未付款"
    End If
End If


--  作者:Bin
--  发布时间:2015/1/22 11:56:00
--  
请问这代码可否加入锁定行检?
If e.DataCol.name="A列" Then
    If e.DataRow("A列") = False Then
        e.DataRow("B列")="已付款"
        e.datarow.locked=true
    Else
        e.DataRow("B列")="未付款"
    End If
End If

--  作者:tungwun
--  发布时间:2015/1/22 12:08:00
--  请问这代码可否加入锁定行功能
 请问这代码可否加入锁定行功能?
--  作者:有点甜
--  发布时间:2015/1/22 13:58:00
--  
If e.DataCol.name="A列" Then
    If e.DataRow("A列") = False Then
        e.DataRow("B列")="已付款"
        e.datarow.locked=true
    Else
        e.DataRow("B列")="未付款"
    End If
End If