如何在数据窗口中找到最大的TAB值

prince022 2007-09-30 12:07:22
如何在数据窗口中找到最大的TAB值,取到最大的TAB值按tab键or Enter键返回1,因为一般情况下按TAB值按tab键or Enter键它会跳到下一条纪录,求助!!!!!
...全文
93 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
yoyoyoung 2007-09-30
  • 打赏
  • 举报
回复
for ll_row = 1 to Integer(this.Describe("DataWindow.Column.Count"))
ls_cname = this.Describe("#" + String(ll_row) + ".Name")

if this.Describe(ls_cname + ".Visible") <> "0" then
// Get first and last column
if this.Describe(ls_cname + ".Protect") = "0" then
if ll_firstcol = 0 or Long(this.Describe(ls_cname + ".TabSequence")) < ll_firstcol then
ll_firstcol = Long(this.Describe(ls_cname + ".TabSequence"))
ls_firstcol = ls_cname
end if
if ll_lastcol = 0 or Long(this.Describe(ls_cname + ".TabSequence")) > ll_lastcol then
ll_lastcol = Long(this.Describe(ls_cname + ".TabSequence"))
ls_lastcol = ls_cname
end if
end if
end if
next

609

社区成员

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

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