1、获得当前鼠标所指对象所在的带区
string str_band
str_band=GetBandAtPointer() //获得当前鼠标所指对象所在的带区
str_band=left(str_band,(pos(str_band,'~t') - 1))//获得"header"、"detail"等
if str_band<>'header' then return //单击非头区,退出
2、 获得鼠标指向的列对象名
str_o b j e c t=GetObjectAtPointer() //获得当前鼠标所指对象名
str_o b j e c t=left(str_o b j e c t,(pos(str_o b j e c t,'~t') - 1))
//获得列对象名(默许为列名_t为列题目)
str_column=left(str_o b j e c t,(len(str_title) - 2))
//判断该名称是否为列名字
if this.describe(str_column+".band")='!' then return //非是列名,即列题目不是按正惯例律起名的。
3、获得当前行、列,总行、列 //this 针对数据窗口而言
li_col = this.GetColumn()
li_ColCount = long(describe(this,"datawindow.column.count"))
ll_row = this.GetRow()
ll_RowCount = this.RowCount()
//设置当前行、