string ls_columns[]
integer li_i
string ls_p1vis,ls_p2vis
if dwo.type="text" then
if dwo.name=is_dwoname then
if is_sort="D" then
//dwo.border=6
s_name=dwo.name
s_name=left(s_name,len(s_name) - 2)
this.setsort(s_name+" A")
this.sort()
is_sort="A"
else//if is_sort="A" then
//dwo.border=6
s_name=dwo.name
s_name=left(s_name,len(s_name) - 2)
this.setsort(s_name+" D")
this.sort()
is_sort="D"
end if
else
s_name=dwo.name
s_name=left(s_name,len(s_name) - 2)
this.setsort(s_name+" D")
this.sort()
end if
end if
idwo_dwo=dwo
is_dwoname=dwo.name
end if
呵呵!!
点数据窗口的列名就行