28.让run程序和主程序一起关闭:
function
ulong
findwindowA(...)..
"user32.dll"
function
long
setparent(...
"user32.dll"
handle = findwindowA(nul,win_title)
30.不想做排序窗口?调用PB自身的好了。
string
ls_null
SetNull(ls_null)
dw_1.SetSort(ls_null)
dw_1.Sort()
31.调用PB自身的过滤窗口:
dw_1.SetFilter(ls_null)
dw_1.Filter()
1.如何让存储文件目录的列,显示图片?
答:选择对应的column的display as picture属性为truesetparent(handle,handle(w_main))
35、除了循环以外,有没有更好的方法统计数据窗口中处于选中状态的行数?
一般习惯于使用循环来统计数据窗口中处于选中状态的行数,有没有更好的方法?
其实此问题在应用上用处不大,讨论一下,活跃一下思维还是有好处的。
方法一:
long ll_Selected
ll_Selected = long(dw_1.describe("evaluate('sum( if(IsSelected(), 1, 0) for all)',1)"))
方法二:
long ll_Selected
ll_Selected = long(dw_1.describe("evaluate('count(IsSelected() for all)',1)"))
方法三:
upperbound(dw_1.Object.Data.Selected)