数据窗口标题排序
我找了一段代码,但运行不成功,麻烦各位大虾帮看一下
string ls_object_name, ls_object_type,ls_cur_col
string is_oldsort,is_oldcol
if row = 0 and this.describe(ls_object_name + ".band") = "header" and &
this.describe(ls_object_name + ".text") <> "!" then
ls_cur_col = left(ls_object_name , len(ls_object_name) - 2)
if ls_cur_col <> is_oldcol then
this.modify("destory p_sort")
is_oldcol = ls_cur_col
this.setsort("ls_cur_col, A")
is_oldsort = "A"
this.sort()
else
if is_oldsort = "A" then
this.setsort("ls_cur_col, D")
is_oldsort = "D"
else
this.setsort("ls_cur_col, A")
is_oldsort = "A"
end if
this.sort()
end if
end if