社区
DataWindow
帖子详情
自动排序的问题
huyu361
2006-06-30 04:30:32
我的数据窗口是grid格式的 我想每点各列就能按要求自动排序
就象exsl 是的 问怎么弄新人详细点谢谢!!
...全文
216
5
打赏
收藏
自动排序的问题
我的数据窗口是grid格式的 我想每点各列就能按要求自动排序 就象exsl 是的 问怎么弄新人详细点谢谢!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
cab_1128
2006-07-03
打赏
举报
回复
我想楼主的意思应是点点列标题就自动排序吧。
huyu361
2006-07-03
打赏
举报
回复
is_OrderCol在那里定义呀
xyqiqi
2006-07-01
打赏
举报
回复
string ls_AddPict, ls_CurObj, ls_Picture, ls_CurCol
integer li_PictPos
ls_CurObj = String(dwo.Name)
If Row = 0 AND This.Describe(ls_CurObj + ".Text") <> "!" AND This.Describe(ls_CurObj + ".Band") = "header" Then // Valid header object?
ls_CurCol = Left(ls_CurObj,Len(ls_CurObj) - 2)
If is_OrderCol <> ls_CurCol Then // Different Column
This.Modify("DESTROY p_" + is_OrderCol)
is_OrderCol = Left(ls_CurObj,Len(ls_CurObj) - 2)
ls_Picture = "bmp\ORDERUP.BMP"
is_SortType = "A" // Ascending sort
li_PictPos = Integer(This.Describe(ls_CurObj + ".X"))+ (Integer(This.Describe(ls_CurObj + ".Width")) - 70)
ls_AddPict ='create bitmap(band=foreground filename="' + ls_Picture + '" ' + &
' x="' + String(li_PictPos) + "~tInteger(describe('" + is_OrderCol + &
".X')) + (Integer(describe('" + is_OrderCol + ".Width'))" + ' - 70)" y="24" ' + &
' height="33" width="51" border="0" name=p_' + is_OrderCol + ' visible="1")'
This.Modify(ls_AddPict)
This.SetSort(is_OrderCol + " " + is_SortType)
This.Sort()
Else
If is_SortType = "A" Then
ls_Picture = "img\down_sort.bmp"
is_SortType = "D"
Else
ls_Picture = "img\up_sort.bmp"
is_SortType = "A"
End If
This.Modify('p_' + is_OrderCol + '.filename = "' + ls_Picture + '"')
This.SetSort(is_OrderCol + " " + is_SortType)
This.Sort()
End If
End If
点击的时候,与老列比较,如果是原先的列,排列顺序就与老列相反,如果是新列,就重新排序。
ls_Picture是加载的图片,即点击列的时候,会在列的右边出现一个向上或者向下的图片。
huyu361
2006-07-01
打赏
举报
回复
新人详细点
polestarxu
2006-06-30
打赏
举报
回复
在clicked事件里面写代码。 dw.setsort(columnname) dw.sort()
200个经典C程序【源码】
011 模拟ATM(
自动
柜员机)界面 012 用一维数组统计学生成绩 013 用二维数组实现矩阵转置 014 求解二维数组的最大/最小元素 015 利用数组求前n个质数 016 编制万年历 017 对数组元素
排序
018 任意进制数的...
仿微信联系人拼音分类列表
效果与代码 见http://blog.csdn.net/b275518834/article/details/9327485 将联系人按拼音字母分类
排序
点击右边字母列表如字母F
自动
滚动到F字母相关的联系人
json_decode 索引为数字,
自动
排序
问题
json_encode 索引为数字,
自动
排序
问题
使用son_encode 给前端返回数据,结果顺序不对,经debug调试,发现是json_encode 函数的
问题
; { "code": 0, "msg": "请求成功!", "...
js-
排序
-对象key
自动
排序
问题
【代码】js-
排序
-对象key
自动
排序
问题
。
js数据类型对象(Object)
自动
排序
问题
前言 这两天碰到一个
问题
。发现游戏(塔防类游戏)中炮塔寻怪算法有误,炮塔无法准确的找到最危险的怪物(也就是射程范围内离终点最近)。...想到Object是存在Key
自动
排序
功能的,所以使用了一个Ob
DataWindow
609
社区成员
20,469
社区内容
发帖
与我相关
我的任务
DataWindow
PowerBuilder DataWindow
复制链接
扫一扫
分享
社区描述
PowerBuilder DataWindow
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章