以文本方式查看主题

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

--  作者:张生辉
--  发布时间:2018/2/18 9:55:00
--  这个错误怎么理解?
If e.Row("记凭")=True Then
   e.Cancel=True
End If


编译错误:"row"不是"controlEventArgs"的成员
错误代码:If e.Row("记凭")=True Then


这个错误怎么理解?

--  作者:新福星
--  发布时间:2018/2/18 16:24:00
--  
这是在哪个事件中的代码?
--  作者:张生辉
--  发布时间:2018/2/19 9:30:00
--  
新建的窗口,里面只有按钮控件,我代码放在点击的事件上。
--  作者:y2287958
--  发布时间:2018/2/19 13:14:00
--  
Tables("表名").Current(“列名”)
--  作者:新福星
--  发布时间:2018/2/19 14:13:00
--  
e参数在按钮控件中是无法使用的。请定义当前行如下
dim s as row =tables("表名").current
if s isnot nothing then
if s("凭证“)=true then return
end if

--  作者:张生辉
--  发布时间:2018/2/25 10:16:00
--  
我是想 如果记凭列当前行为true,就锁定当前行。
--  作者:有点甜
--  发布时间:2018/2/25 10:44:00
--  
以下是引用张生辉在2018/2/25 10:16:00的发言:
我是想 如果记凭列当前行为true,就锁定当前行。

 

Dim s As Row =Tables("表名").current
If s IsNot Nothing Then
    If s("凭证")=True Then s.locked = true
End If