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
34
S
14
G
4
Posts: 251
Reputation: 4,074

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
94
S
33
G
114
Posts: 5,362
Reputation: 73,785

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
21
S
5
G
8
Posts: 1,215
Reputation: 7,834


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests