Solved

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

Posted on 2011-03-17
11
2,207 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
  • 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
 

Author Comment

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

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

Expert Comment

by:ewangoya
ID: 35159337

No sir, you have to use the Items property

eg

ListGroup.Items.Clear;
ListGroup.Items[2].AddChild;
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 36

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:ewangoya
ID: 35160298

Correct, just call clear directly from the tree object

ListGroup.Clear;
0
 
LVL 36

Expert Comment

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

ListGroup.Root.Items[n]
0
 
LVL 24

Accepted Solution

by:
jimyX earned 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Specific format 21 140
Reconfigure Delphi Install? 2 35
Problem to start Neon 20 51
how can i search if string exist in array ? 3 27
This article will show, step by step, how to integrate R code into a R Sweave document
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now