Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why do I need to open outlook to send e-mail, part II ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00231324
Message ID:
00233333
Views:
26
Esteban,

>I have problem (again) with the object reference in a form. I have your ObjRef application, but I cant solve the problem.

Objref is only going to find object refs stored in properties or memvars and I'm not sure it'll work for COM objects at all.

Your code below looks ok. What does .Add() return an object or an integer? What if you declare itmX local? Do you have any other code to explicitly destruct the TreeView node by node?

>The form have a TreeView and a ListView. The internal reference appear when I do the follow code:
>
>At TreeView.NodeClick event:
>
Lparameter node
>Local oNode
>
>oNode = node.Child
>With .oleList.Object.ListItems
>  .Clear()
>  Do While Type( "oNode" ) == "O" And !IsNull( oNode )
>    itmX = .Add(, oNode.Key, oNode.Text, oNode.Image, oNode.Image)
>    oNode = oNode.Next
>  EndDo
>EndWith
If I comment this code block, when I close the form I have not problems. If I run this code when I click a node in the TreeView, when I close the form, it is remaining on screen and I need to write CLEAR ALL at command window to release the form.
>I you can help me with this problem, please do it.
>Thanks very much in advance.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform