Are you new? Sign up now
The Daily Click
Klik Coding Help
help with strings
12th May, 2005 at 13:55:59 -
hi you all!
im making a name input a la Zelda in my game and so far all characters input works fine and it goes like this:
cursosr is overlapping active object A
set alterable string to alterable string + A
and the same for all characters...but i have absolutely NO ideia of how to bacspace one letter.
could you please help me?
David Newton (DavidN)
12th May, 2005 at 14:06:02 -
What you need to do here is get every character of the string except the last one, then place the result of that back in to the string. To do this, use the Left$() function.
Left$("String", Length of the string - 1) will give the correct result, but I don't know the syntax offhand - you should be able to find this out by using Retrieve Data From an Object.
- Games, music, living in America
12th May, 2005 at 15:56:49 -
yeh, if he has MMF
12th May, 2005 at 18:15:14 -
yeye, its working, but i had to use a counter to determine the lenght of the string
Master of all things Klik
12th May, 2005 at 18:56:56 -
cant you use $len(string) to get the length of the string?
Worth A Click