Yes I see but it's easy to keep just name too.
thisform.myMapObj = stuff(sys(1272,toMap), 1, ;
at('.', sys(1272,toMap)),'thisform.')
When needed :
with eval(thisform.myMapObj)
or :
toMap = eval(thisform.myMapObj)
Cetin
>I am using VFP 6 SP5. I do have references to the object that are properties of the form, and that is to easily issue commands to objects withing the ActiveX control.
>
>>I am getting Cannot Quit Visual Foxpro when exiting out of my application. I have read about the ON SHUTDOWN CLEAR EVENTS stuff. And checked that in my CleanUp code, I issue CLEAR EVENTS. I have a form that has a Microsoft Map Point 2002 ActiveX control on it. I run the form on startup of my application so it doesn't need to load later, but I run the form with NOSHOW. If I don't ever show the form and exit out, then I get the message. If I do show the form I don't get the message. I have also tried not loading the form on startup, and calling it when needed. And I don't get the message regardless of whether I show the form or not. The only thing that the form does is create waypoints on the map. It doesn't make any global changes. I don't know if ActiveX controls have a habit of causing these king of problems or not. Once again, any help would be much appreciated.
>>
>>John Rowlinson
>>Microworks POS Solutions
>
>>Probably you've a circular object referencing (both form and activex have ref to each other) and version is VFP5 (3). If so try using object name instead of reference.
>>Cetin
>>Çetin Basöz
>>Long live UT
>>Welcome to FoxyClasses
>>Türkçe bir Foxpro sitesi Fox4um