View Single Post

  #1 (permalink)  
Old 07-16-2003
matt1168 matt1168 is offline
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 14
Send a message via MSN to matt1168
How do you read from a FindResults type in delphi?

oResult : FindResults;
FMap : _map;
begin
FMap := Application1.ActiveMap as _Map;
Loc := FMap.GetLocation(X, Y,1) as Location;
Loc.GoTo_;
oResult := FMap.ObjectsFromPoint(FMap.LocationToX(Loc),FMap.L ocationToY(Loc)) as FindResults;

if i use this code to search with i get 5 results. but i cannot read any of the results. Every thime i try i get an access violation. I have tried several different code samples from this site and i allways get an access violation any ideas?
Reply With Quote