版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、private sub toolbar2_buttonclick(byval button as mscomctllib< button)seiect case buttoncase"属性杳询”supcrmap1. action二scasclcctcase”条件査询”dim objds as sodatasource;dim obdtvector as sodataset vector;dim objrecordset as sorecordset;dim objselection as soselection;set objds=suporworkspace1. dataso
2、urces. item( umydatasource")if objds is nothing then exit subset objdtvector=objds> datasets( "world” );if objdtvector is nothing thenmsgbox"打开数据集错误”,vbinformationexit subend ifset objrecordset=objdtvector, query(txtexpression. text,true)if objrecordset is nothing thenexit subel se
3、set objselectionsupermapl. selectionobjselection. fromrecordset objrecordsetsupermap1. refreshend ifset objdtvector二nothingset objrecordset=nothingset objselection二nothingend seiectend subprivate sub commandl_click()dim si stringdim s_id as stringdim s rmin as stringif text, text二” then s_id二” ”else
4、s_id二text/textend ifif text2. text二” then s_nam二” %”el ses_nam=text2. textend ifsi二” select*from goood where id like” +s_id+" and nam like +s_nam+adodcl- recordsource=sladodcl. refreshend subopen” c:l.txt” for input as#lrs. open” select*from tab lea where 字段 lnot in(select 字段 lfrom table_b) ” ,
5、 cormwhile not rs.eofprintf#l,rs( “字段 1”)rs. movenextwendrs. closeclosc#lopen" c:2.txt” for input as#lrs. ope n” select *f rom table_a where 字段 1 in( sei ec t 字段 1 from table_b)” , co rmwhile not rs.eofprintf#l,rs( “字段 1”)rs. movenextwendrs. closeclose#lprivate sub toolbar3_buttonclick(by val b
6、utton as mscomctl1ibbutton)select case buttoncase”游戏”shel 1 “c:docum ents and sett in gsadm in i strator桌 |flivi suqi basic 6 o'ddchess. exe"case”音乐”shell” f:kugou2010kugoo. exe”case"惊喜”print”售价100万,地科免费!”fontname=n 黑体”fontitalic=truefontsize=48end selectend subprivate sub btnsql_click
7、()frmsqlexpression. show vbmodal,meend subprivate sub btnshowdt_click()dim i as integerdim objds as sodatasourcedim objdt as sodatasetif btnshowdt. caption二”显示成生的数据集” thenset objds二super workspacel. datasource(1)if strdtname=,m, then exit subsupermap1. layers, removeal 1set objdt二objds. datasets(str
8、dtname)supermap1 layers, adddataset objdt, truesupermap1. refreshbtnshowdt. caption=n 显示全部图”elseset objds二super workspacel. datasources(1)for i=l to objds. datasets.countset objdt=objds. datasets(i)set objdt二objds. datasets(i)supermap1. layers adddataset objdt, truenextbtnshowdt. caption="显示生成的
9、数据集”end ifsupermap1 refreshend subprivate sub toolbar2_buttone1ick (byval button as mscomctl1ib> button)select case buttoncase”放大”supermap1 action=scazoomincase”缩小”supermap1- action二sea刁oomoutcase”白由缩放”supermap1. action二scazoomfrcccase “漫游”supermap1. actionscapancase “选择”supermap1. actionscaselec
10、tcase”全屏”supermap1. viewentirocase”演示”supermap1.cormect super workspacel.objectdim stralias as stringdim nenginetype as scenginc typedim strdatasourcename as stringdim objdatasource as sodatasourcedim breadonly as booleandim objlayer as solayerdim baddtohead as booleaaandim i as integerstralias=n my
11、datasource nengine type二scesdbplusstrdatasourcename= ” c:docume nts and sett in gsadm in istrator桌 |flj vi sual basic6. o'ddchess exe”breadonly=falsesetobjdatasourcesuperworkspace1 opendatasoirrce(strdatasourcename, stralias, nenginetype,breadonly)if objdatasource is nothing thenmsgbox” 打开数据源失败v
12、b informat io nelsefor i =1 to objdatasource datasets, countbaddtohrad=true;setobjlayer;supermap1. layers, adddataset(objdatasource. datasets, item(i), baddtohead)nextend ifsupermap1. refreshsupermpl. select!on. style, pencolor二rgb(231, 77,0)supermap1 selestion style. penwidth=lsupermap1. selestion. style, penstyle=lsupermap1. selestion. style, brushstyle二5supermap1. selestion. style. brushcolor=rgb(115,69,140)supermap1. selestion. style. brushback=rgb(239, 150, 255)supermap1 selestion style brushopaqueratr=50set objdatasource二nothingset obj1ayer=nothi ngcase"
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 医院内感染预防的感染控制创新
- 2026中医护理实践报告撰写课件
- 江西省宜春市宜丰县宜丰中学2023-2024学年高三上学期开学地理试题(解析版)
- 内科护理学评估与干预(副高)
- 压疮护理与职业健康安全管理
- 新疆乌鲁木齐仟叶学校2025-2026学年八校联考中考数学试题模拟试卷含解析
- 浙江省台州椒江区2025-2026学年第二学期9月月度调研测试初三英语试题含解析
- 江苏省盐城市解放路实验校2025-2026学年初三英语试题期末练习试卷含解析
- 介入护理操作规范与流程
- 福建省宁德2026届初三中考线上模拟测试语文试题含解析
- 泌尿外科患者的用药管理
- OpenClaw简介与准备工作
- 锅炉应急预案大全(3篇)
- 2026年包钢集团招聘笔试参考题库含答案解析
- 钻石营销成功案例分析
- 药店抗生素培训
- 2026年毕节工业职业技术学院单招综合素质笔试备考试题含详细答案解析
- INS复兴乐园方案 BRAND INTRO
- 2026春招:农业银行题库及答案
- 2026广州环投集团校招面笔试题及答案
- 供电公司安全生产培训会课件
评论
0/150
提交评论