>Hi,
>I have just been playing around with the tree control from dbi and all works well, except I cannot see how I am supposed to link the items in the tree control with my pk field, I have found the lnindex but unless I can force this to be the pk value I am lost
>
>Do help
>TIA
>Stuart
Place the value in the NodeData collection if use use an integer data type for the PK of NodeCargo if you use a character string.
Your code will look something like this
WITH treename
ln_node = .AddNode(...)
.NodeData(ln_node) = pk && or use .NodeCargo(ln_node) = pk
ENDWITH
Ken Wardwell