Shawn,
>Can i embedded a sting property on the node, like the tag property and then macro execuete that code???Yes, you can do that ... but dynamically executing code like that isn't as easy as it was in VFP. See Rick's white paper for how to do it:
http://www.west-wind.com/presentations/DynamicCode/DynamicCode.htmBecause it's more work to dynamically execute the code, I would opt for using a simple switch statement in the AfterSelect event handler as I originally suggested. But, maybe that's just me ... <g>
~~Bonnie
>Thanks Bonnie,
>
>>AFAIK, there are no events for Nodes ... the only event you can use is the AfterSelect ... and yes, use a switch statement.
>
>Can i embedded a sting property on the node, like the tag property and then macro execuete that code???
>
>Something like i did in FoxPro, the TAG feild held a object reference and then all i did was execute the tag code.
>
>
>--> Shawn
>
>>
>>~~Bonnie
>>
>>
>>
>>>Thanks Bonnie,
>>>
>>>But what i want to do is bind the node to an event at the time of creation of the node.
>>>
>>>In your idea i would have to do a switch statement right?
>>>
>>>--> Shawn
>>>
>>>
>>>>Shawn,
>>>>
>>>>In the AfterSelect EventHandler for the TreeView, you can determine which TreeNode was selected and process accordingly.
>>>>
>>>>~~Bonnie
>>>>
>>>>