| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 395 人关注过本帖
标题:[求助]急!编译时提示对象变量或with块变量未设置,怎么解决
取消只看楼主 加入收藏
colourlz
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2007-3-12
收藏
 问题点数:0 回复次数:0 
[求助]急!编译时提示对象变量或with块变量未设置,怎么解决

由于代码比较长,只把出错的地方粘出来了

Public Sub hjhf()
Dim Movement As Boolean
Dim opoints2 As New MapObjects2.Points
Dim opoints1 As New MapObjects2.Points
Dim opoints As New MapObjects2.Points
Dim oLine As New MapObjects2.Line
Dim opoint2 As New MapObjects2.Point


Dim hLine As MapObjects2.Line, vLine As MapObjects2.Line
Dim hPoints As MapObjects2.Points, vPoints As MapObjects2.Points
Dim hPntA As MapObjects2.Point, vPntA As MapObjects2.Point
Dim hPntB As MapObjects2.Point, vPntB As MapObjects2.Point
Dim ptbuffer As MapObjects2.Polygon

Dim k As Variant
Dim j As Variant
Dim p As Variant
'Dim opoint2 As New MapObjects2.Point
Dim huifang3(100) As String
Dim huifang4(100) As String
Dim huifang5(100) As String
Dim huifang6(100) As String

Dim Combo4 As ComboBox
Dim adodc33 As Adodc '如果不对combo和adodc33定义,则提示对象变量没有定义,定义之后提示下面的错误

Dim q As Integer
Movement = False
Set opoints2 = Nothing
Set opoints1 = Nothing
Set opoints = Nothing
Set oLine = Nothing
frmRiver.Map1.TrackingLayer.ClearEvents
frmRiver.Map1.TrackingLayer.Refresh True


Adodc33.RecordSource = "select * from convert5 where mingcheng=" & "'" & Combo4.Text & " '"
Adodc33.Refresh
'提示出错的地方

[此贴子已经被作者于2007-4-16 14:51:05编辑过]

2007-04-16 08:43
快速回复:[求助]急!编译时提示对象变量或with块变量未设置,怎么解决
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.045137 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved