以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]好像 数据字典 的排序 无效  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=37643)

--  作者:54kang
--  发布时间:2013/7/7 15:01:00
--  [求助]好像 数据字典 的排序 无效
用数据表生成数据字典,排序功能无效。

If MainTable.Name = "机械性能" Then
    Dim dmp As New TableDataMap
    dmp.DataTable = "试样尺寸表" 
    dmp.ValueCol = "尺寸" 
    dmp.DisplayCol = "尺寸" 
    
    dmp.ListCols = "代号,形状,尺寸"
    dmp.filter = "试样种类=\'拉伸试样\'"
    dmp.Sort = "代号" \'指定排序方式
    
    Tables("机械性能").Cols("力学性能_试样尺寸").DataMap = dmp.CreateDataMap() 
End If

--  作者:lsy
--  发布时间:2013/7/7 15:42:00
--  

一眼望去,没法更正确了。

上道小菜,大家亲口尝尝呗。