Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]动态列表项目问题

1楼
dqlgood 发表于:2011/10/21 12:51:00

将最后5个不重复的数据加到ComboBox下拉菜单中如何实现?

2楼
狐狸爸爸 发表于:2011/10/21 13:06:00
做个例表上来,具体说明问题。
3楼
don 发表于:2011/10/21 13:45:00
大概如此:
Dim n,n1,i As Integer
Dim Ls,Lb As String
Ls = DataTables("订单").GetComboListString("客户ID","","_Identify")
n = Ls.split("|").Length
n1 = iif(n > 4,n-5,0)

For i  = n1 To n-1
    Lb+ = "|" & Ls.split("|")(i)
Next

e.Form.Controls("ComboBox1").ComboList=Lb
[此贴子已经被作者于2011-10-21 13:48:13编辑过]
4楼
dqlgood 发表于:2011/10/21 14:26:00

棒极了!谢谢!

共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.