Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MapObjects and Error #1943
Message
From
23/07/2002 10:18:25
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
23/07/2002 09:50:35
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00681607
Message ID:
00681633
Views:
16
Hi Quinn,

This is not exactly a solution to your problem but perhaps it could help.

I ran into a similar problem when I was trying to use the MapObject.AddRelate() method. It would produce an error but when I suspended and went into the VFP debugger everything checked out. If I resumed the code, things worked exactly as I wanted. So I got around the problem by issuing an ON ERROR RETRY statement just before the problem line. I didn't care to find out why or what caused this error; it simply went away when I "ignored" it :)

Give it a try. Good Luck...

Mike

>This is a repost
>
>I have a mapping application that has a map control on a form. Every time layers are added to the control the BeforeLayerDraw method is called. The code in that method runs just fine until I call a method that calls the BeforeLayerDraw method. When that happens I get on error on one of the object references. The error is "Member Layers does not evaluate to an object". In the watch window of the debugger it shows that reference to be valid. I placed this code just before the line to see if it would stop there but that didn't seem to help. The reference still seems to be vaild.
>
>IF TYPE('this.layers(i)') = "O" and !ISNULL(this.layers(i)) then
> this.layers(i).visible = .t.
>ENDIF
>
>After I hit cancel in the debugger the method keeps running until it prints out the report that it is supposed to.
>
>What could be happening?
>
>Thanks in Advance
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform