GPS课程设计报告代码_第1页
GPS课程设计报告代码_第2页
GPS课程设计报告代码_第3页
GPS课程设计报告代码_第4页
GPS课程设计报告代码_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论