Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2nd Post Re: tag property for each node in the Nodes Col
Message
 
À
20/04/2001 00:35:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00497245
Message ID:
00498089
Vues:
15
What I would do is store the records primary key value in the tag property. Then I would use that key to find the note in the dbf and display it on the form as needed. You then can also you the key property to find the proper record when you need to update the note.

>Rip,
>
>Tx for your response
>
>What I was looking for was something like this
>1. Load treeview from dbf (dbf has 4 fields: key,parent,text,note)
>2. Display treeview Allowing end user to add/edit any node (text) or note
>Yes the bldtree.scx does all except the using a 4th field (note) so I put the note field into node.tag and I have an extra textedit box for displaying the field from the dbf. My problem is how do I update the dbf when end user adds or edits a node.
>Step 3. writing out the node to a new dbf is not a problem if I can just figure out step 2...
>Sorry new to VFP 6.0 so not used to all its nuiances.
>
>>>Can anyone give me a hint/help I need to be able to access a tag like field for each node of the Nodes Collection I have taken the bldtree.scx from the
>>> solution sample thought boy this is great it's got all I need a way for the end user to create his own treeview and then save it. Unfortunately I also need a
>>> way to add a note for any node in the node collection then write it back out. Any suggestions would be appreciated. Thanks...
>>
>>Have you looked at all the available properties for a node? A node object has a tag property that according to the docs:
>>
>>
>>Returns or sets an expression that stores any extra data needed for your<br> program. Unlike other properties, the value of the Tag property isn't used by<br> Visual Basic; you can use this property to identify objects.
>>
Rip Ryness
International Falls, MN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform