Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add properties to treeview
Message
From
16/11/2007 10:28:26
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01268950
Message ID:
01269405
Views:
14
hi, Thank you for answer

This my code but I have problem

parameters cnodo && name of the nodo
local oempty as empty
oempty = newobject([EMPTY])
addproperty(oempty,[borra],.f.)
addproperty(oempty,[modif],.f.)
thisform.mynodeproperties = newobject([Collection])

k=rand()
oempty.borra = iif(k>0.5,.t.,.f.)

thisform.mynodeproperties.add(oempty,cnodo)

*-- When I am creating every node in the treevew I call this method
*-- hitherto to this one well but when I want to assign the value of the
*-- property 'borra'

*-nodeclick
*- (thisform.folder1.page2.chborra.Value) this's an checkbox

*- thisform.folder1.page2.chborra.Value = thisform.mynodeproperties.Item(node.key).borra

*-- error
*-- index or expression does not match an existing member an the collection
Jose Manuel Ramirez
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform