Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot access Node properties in TreeView
Message
From
29/01/2009 09:44:34
 
 
To
29/01/2009 09:31:18
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01378086
Message ID:
01378095
Views:
24
This message has been marked as the solution to the initial question of the thread.
>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?


try
m.n.ForeColor = RGB(255,0,0) 
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform