Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi,
i create a program like calculator with C2 but i need to subtract the last number to first if Del button clicked.
in my source i use system every tick to show the textbox value...
please help me,
best regards.
left(string, len(string) - 1)
left() takes the first X characters of your string
len() counts the length of the string
So left(string, len(string) - 1) takes all characters from the first to 1 before the last
Thank you for reply, but i'm new in C2, How ca i use that?
my global variable is : callnumber and it is the textbox value
can i use the : "left(callnumber , len(callnumber ) - 1) " in textbox set text?
Develop games in your browser. Powerful, performant & highly capable.
OK, I use like that write here and it work, thank you