| |

VerySource

 Forgot password?
 Register
Search
View: 994|Reply: 1

How do I get the first and last nodes in the treeview?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-22 16:30:02
| Show all posts |Read mode
How do I get the first and last nodes in the treeview?
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-1 01:15:01
| Show all posts
long ll_Handle
treeviewitem ltvi_item
ll_handle=tv_Tree.finditem(RootTreeItem!, 0)
ll_Handle is the handle of the first node.
tv_Tree.getitem(ll_Handle,ltvi_item)
ltvi_item is the information of the first node
The tail node is not easy to judge, only find the last node of level 1 through finditem, and then find its last child node,
Until it is not found, then this node is the last node.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list