ListBox Set TEXT (not Data)

For questions about using Classic.

Post » Wed Aug 10, 2011 5:41 pm

Is there a way to change a line in a list box to some new Text?

All I see is "Set Line Data" which does not do this.

So Line 2 reads "Hot" and I can make Line 2 Read "Cold"

Thanks
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Wed Aug 10, 2011 6:03 pm

You can do it by deleting line 2 then inserting at line 2.

-> ListBox: Delete line 2
-> ListBox: Insert line "Cold" at line 2
B
79
S
24
G
54
Posts: 4,753
Reputation: 40,769

Post » Wed Aug 10, 2011 6:06 pm

+ System: Start of layout
-> ListBox: Add line "hot"

+ Button: On Button clicked
-> ListBox: Delete line 1
-> ListBox: Add line "cold"


example
B
19
S
6
G
7
Posts: 1,206
Reputation: 7,300


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests