如何判断数据窗口对象是否是只读的::

suziniren 2003-06-12 11:05:09
如何判断数据窗口对象是否是只读的::
我的语句是这样的。。。

if this.object.datawindow.readonly then
messagebox('','niren')
return
end if

可是不管数据窗口对象是否只读都输出:NIREN
...全文
45 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
suziniren 2003-06-12
  • 打赏
  • 举报
回复
多谢两位,两位的方法我都试了。。
if this.object.datawindow.readonly = true then
会出现错误提式

if this.object.datawindow.readonly = 'yes' then
是可以的。。。
Thinkinger 2003-06-12
  • 打赏
  • 举报
回复
if this.object.datawindow.readonly = 'yes' then
……
devil_heart 2003-06-12
  • 打赏
  • 举报
回复
if this.object.datawindow.readonly = true then
messagebox('','niren')
return
end if

611

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder DataWindow
社区管理员
  • DataWindow社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧