?
Solved

TcxTreeList.NODES property GONE? (Quantum Tree List upgrading 4 to 5)

Posted on 2011-03-17
11
Medium Priority
?
2,293 Views
Last Modified: 2012-05-11
I'm trying to compile my project with the new TcxTreeList but I'm getting this error:
Undeclared identifier: 'Nodes'

About 20 of them, originating from lines such as:
ListGroup.Nodes.Clear;
ListGroup.Nodes.Items[2].AddChild;
etc, etc.. list goes on

Keep in mind that ListGroup = TcxTreeList


Anybody know what became of 'NODES'?

Thanks
0
Comment
Question by:John86a
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
  • +1
11 Comments
 
LVL 24

Expert Comment

by:jimyX
ID: 35157988
TcxTreeList.Nodes has been updated to TcxTreeList.AbsoluteItems
0
 

Author Comment

by:John86a
ID: 35158202
Hi again jimy! Upon compiling I'm still getting an error,
for i := 0 to tree.Nodes.Count - 1 do
Changed to
for i := 0 to tree.AbsoluteItems.Count - 1 do
Getting
uXXXX.pas(98): '[' expected but '.' found

Any idea? Thanks
0
 

Author Comment

by:John86a
ID: 35158226
Also for this line:
for i := 0 to tree.AbsoluteItems.Count - 1 do

uXXXX.pas(951): '[' expected but '.' found
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:John86a
ID: 35158770
Sorry, I meant this line:
ListGroup.AbsoluteItems.Clear;

'[' expected but '.' found
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 35159337

No sir, you have to use the Items property

eg

ListGroup.Items.Clear;
ListGroup.Items[2].AddChild;
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 35159662
ListGroup is a Tree ?
a odd naming convention ...

use AddNode

var item: TcxTreeListNode;
begin
  item := TcxTreeListNode.Create(cxTreeList1);
  item.Texts[0] := 'First column';
  item.Texts[1] := 'Second column';
  cxTreeList1.AddNode(item, nil, nil, tlamAdd);
0
 

Author Comment

by:John86a
ID: 35159762
Actually, none of the above satisfies 100% of the problem, as on the following screenshot shows that there is no 'clear' property in there.

 screenshot
0
 
LVL 32

Expert Comment

by:Ephraim Wangoya
ID: 35160298

Correct, just call clear directly from the tree object

ListGroup.Clear;
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 35160707
you are probably looking for

ListGroup.Root.Items[n]
0
 
LVL 24

Accepted Solution

by:
jimyX earned 2000 total points
ID: 35162429
Confirming my post "TcxTreeList.Nodes has been updated to TcxTreeList.AbsoluteItems"
It is not just a word-to-word replacement, you have to use the appropriate "Absolute" property:

Your loop will be:
for i := 0 to tree.AbsoluteCount - 1 do

And for AbsoluteItems you have to provide an index (integer value):
AbsoluteItems[index].xxxx;
0
 

Author Closing Comment

by:John86a
ID: 35167143
Thanks!
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question