How do I select all the list items?

Get help using Construct 2

Post » Mon Oct 17, 2016 1:00 pm

Hi. I just need to know how to select all the items of several lists (4 in total). I intend to compare them all.

Thanks in advance
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,053

Post » Mon Oct 17, 2016 7:00 pm

4 lists, 'listA' , 'listB', 'listC', listD

Condition > system > for .. name = "A" .. start index = 0 .. end index = ListA.ItemCount - 1
Sub Condition > system > for .. name = "B" .. start index = 0 .. end index = ListB.ItemCount - 1
Sub Condition > compare two values ... ListA.ItemTextAt(loopindex("A")) ... ListB.ItemTextAt(loopindex("B"))

That is for A with B. B with A is also done that way.
Do the same for A with C, A with D, B with C, & B with D
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Oct 17, 2016 8:34 pm

@99Instances2Go

Thanks. I will try to implement it.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,053

Post » Tue Oct 18, 2016 12:22 pm

@99Instances2Go

Just one more question: how can I do if I am using a same list with different IDs?

Thanks in advance.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,053

Post » Tue Oct 18, 2016 2:01 pm

ID's ? You mean instances of the same list ?
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Oct 18, 2016 2:25 pm

99Instances2Go wrote:ID's ? You mean instances of the same list ?


Yes, sorry.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,053

Post » Tue Oct 18, 2016 2:33 pm

B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Tue Oct 18, 2016 2:47 pm

korbaach wrote:searchList.capx


Thanks @koorbach but what I need is to get all the items of the list instances to compare them to know how many are equals and how many are not.

Edited: Sorry, @korbaach for not having understood before that the solution for what I need is in the example that you did. Thank you.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,053

Post » Tue Oct 18, 2016 3:58 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Oct 18, 2016 4:27 pm

Thank you, @99instances2Go!
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,053

Next

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo and 30 guests