Hi there, I have an issue that someone on here may be able to help with...
(using Visual Basic)...
The fault: after running the code below. On exiting the program i get the 'Save map?' dialog box. if i comment out setobj road search its OK. Any ideas how to stop the Save Map dialogue box appearing without stripping the code of its main function?
dim objmap as mappointctl.map
dim objloc as mappointctl.location
dim objroadsearch as mappointctl.findresults
Set ObJMap=ctlMap.Activemap
Set objLoc=ObjMap.getLocation(lat,lon)
ObjLoc.goto
If not objloc is nothing Then
setobjRoadsearch = ObjMap.objectsfrompoint(21,17)
set Objroadsearch = nothing
End If
Set objloc = nothing
objmap.goback
set objmap = nothing
ctlMap.activemap.saved = true
thanks,
Simon