您的当前位置:我要购书网>在线阅读>数据库

listview控件搜索函数(vb)

来源:互联网  作者:  发布:我要购物网收集整理  发布时间:2006-8-31 人气:291

ListView 搜索函数 '**************************************' 函数名: SearchListView' 描述:ListView 搜索函数'日期:2005.03.05'**************************************Option ExplicitPublic Sub SearchListView(ListViewX As ListView, SearchString As String, ListViewZ As ListView) On Error Resume Next Dim w, x, y, z As Integer Dim a, b As String ListViewX.ListItems.Add , , " " ListViewX.ListItems.Item(1).Selected = True SearchString = LCase(SearchString) Do Until ListViewX.SelectedItem.Index = ListViewX.ListItems.Count a = LCase(ListViewX.SelectedItem.Text) z = Len(a) y = Len(SearchString) For x = 1 To z If Mid(a, x, y) = SearchString Then If ListViewX.SelectedItem = b Then Else ListViewZ.ListItems.Add , , ListViewX.SelectedItem b = ListViewX.SelectedItem End If End If Next x w = ListViewX.SelectedItem.Index w = w + 1 ListViewX.ListItems.Item(w).Selected = True Loop ListViewX.ListItems.Remove (ListViewX.ListItems.Count)End Sub
相关文章
· linux下tomcat的安装
· listview标题平面显示(vb)
· listview控件搜索函数(vb)
· listview 操作
· listbox多选状态下的自拖与互拖
· listview控件 -- 改良版,带箭头自动排序
· listcontrol的使用
· linux下配置jboss自动启动
· linux网络服务软件安装备忘录 ver 0.3
· listview custom draw - 不同行(列..
热点文章
%>
· creating user controls
· 提高fastreplace速度 (fstrrep.pas)
· asc ii 完整码表及简介
· 自动生成拼音(汉字反查到拼音)
· sql2000无法安装的解决办法
· 浏览器集成教学 自定义浏览器
· vc++技术内幕(第四版)笔记(第7章)
· mysql5.0中文乱码解决方案
· sql server日期计算
· vc下利用ado连接access数据库
 淘宝旺旺:我要购书网上书店『图书目录
本购书中心地址: 杭州市延安路111号清波商厦南楼D座(总部) 上海市闸北区老沪太路网上购书中心(沪部),  邮编:310002
电子邮件:books@51goushu.com  经营许可证编号:沪ICP备06038574号
版权所有 2003-2008 © All Rights Reserved .购书网