Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add properties to treeview
Message
De
16/11/2007 10:28:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01268950
Message ID:
01269405
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform