Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why do I need to open outlook to send e-mail, part II ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00231324
Message ID:
00233333
Vues:
27
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform