- ·上一篇内容:如何在PB程序中为datawindow添加计算域或line
- ·下一篇内容:PB中如何获得当前应用程序的路径
如何控制PB程序的安全性
本文介绍了PB程序中安全控制的具体实现方法
//我如何才能够很好的控制程序的安全性呢?
比如说,我要在一个窗口当中控制一个button的操作权限
在datawindow中,操作一个字段的可操属性,难道要对这些个单独编码吗?
有没有比较好的方式?
窗口当中的权限放置在变量当中,然后把窗口的权限取消就可以了!
//一个把窗口redraw到screen中间的函数:
f_wincenter(windowname)
environment lenv
long ll_height,ll_width
if getenvironment(lenv)= -1 then
messagebox("error","get screen message error!")
else
ll_height=pixelstounits(lenv.screenheight,Ypixelstounits!)
ll_width=pixelstounits(lenv.screenwidth,xpixelstounits!)
awin.y=(ll_height - awin.height)/2 - 200
awin.x=(ll_width - awin.width)/2
return 0 //成功返回0
end if
return 1
本文源自:翔宇亭——IT乐园(http://www.biye5u.com),转载请保留此信息!
Tags:PB程序 安全性 操作权限 datawindow
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论