The Daily Click ::. Forums ::. Klik Coding Help ::. help with strings
 

Post Reply  Post Oekaki 
 

Posted By Message

Diefox

Possibly Insane

Registered
  23/02/2003
Points
  3481

VIP MemberGOTM -SEPTEMBER 2009 - 2nd place!GOTW WINNER APRIL 2010!
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?

 
__________
amandapps.com

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
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.

 
http://www.davidn.co.nr - Games, music, living in America

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
12th May, 2005 at 15:56:49 -

yeh, if he has MMF

 
n/a

Diefox

Possibly Insane

Registered
  23/02/2003
Points
  3481

VIP MemberGOTM -SEPTEMBER 2009 - 2nd place!GOTW WINNER APRIL 2010!
12th May, 2005 at 18:15:14 -

yeye, its working, but i had to use a counter to determine the lenght of the string

 
__________
amandapps.com

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
12th May, 2005 at 18:56:56 -

cant you use $len(string) to get the length of the string?

 
n/a
   

Post Reply



 



Advertisement

Worth A Click