subtract from string

New releases and general discussions.

Post » Tue Nov 18, 2008 7:34 pm

right now you can add to strings with +"blabla" or +str(value.x) wtv, but you cant subract characters for things like lets say, a backspace function, or if u saved str(object.name)+str(.animframe) and then wanted to create the object soley by its name so you needed to put str(str(wtv it was))- 1 character(s).
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Tue Nov 18, 2008 8:49 pm

The System object has all the text manipulation functions that you may need.
To remove a character from the end of a string set it's text to left(Text.Text, len(Text.Text)-1).
B
1
S
1
G
4
Posts: 2
Reputation: 1,179

Post » Wed Nov 19, 2008 10:58 am

lol Quazi you gettin' styled on bro ;)

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Nov 20, 2008 6:37 pm

how am i supposed to know that????

Noooooooooooooooooooooooooooooooooooooooooooooooooooooo!

thanks rojohound
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 3 guests