How do I return the length of a string?

Get help using Construct 2

Post » Sun Jun 15, 2014 7:56 pm

Title says it all. I need to know how long a string is. Also, how can I access a specific character in a string? E.g. if my string is "Scirra", how could I select the third character and receive "i" as my output, or the fifth character and receive "r", etc.?
B
9
S
3
Posts: 22
Reputation: 755

Post » Sun Jun 15, 2014 8:25 pm

ImageImageImage
B
71
S
22
G
247
Posts: 3,756
Reputation: 137,558

Post » Wed Jun 18, 2014 12:37 pm

blackhornet wrote:https://www.scirra.com/manual/126/system-expressions

Thanks so much! I didn't realize that was in the manual before, but I found what I needed and my program works now :D
B
9
S
3
Posts: 22
Reputation: 755

Post » Tue Sep 15, 2015 4:02 am

thanks. very helpful
B
9
S
2
Posts: 40
Reputation: 673


Return to How do I....?

Who is online

Users browsing this forum: koops and 8 guests