Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot access Node properties in TreeView
Message
De
29/01/2009 10:00:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
29/01/2009 09:31:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Divers
Thread ID:
01378086
Message ID:
01378101
Vues:
22
>Hi again,
>
>I should know this one, but it escapes me now. I added the TreeView control (via OLE container) to my form. I add a node to it.
>
>
>loTree = thisform.tvTree
>n = loTree.Add( ,1, sys(3), "Test" )
>
>
>The variable "n" have a object reference to the new node, right. Well Intellisense sees the properties, but when attempting to access or assign to them Foxpro reports that the property does not exist. This applies to all the properties I have tried so far.
>
>
>n.ForeColor = RGB(255,0,0)            <== Error
>
>
>What am I doing wrong, and does anyone have any suggestion?

I am not sure, but with ActiveX controls, sometimes it helps to insert the keyword "Object" - I guess that would be something like n.Object.ForeColor ...
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform