The Daily Click ::. Forums ::. Klik Coding Help ::. String problems
 

Post Reply  Post Oekaki 
 

Posted By Message

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
31st October, 2003 at 10:09:06 -

Ok, I've made a game that sends a name and score to my asp hi-score script, it works fine, except if they put a space in the name, how can I make my app replace all spaces with _ automatically?

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
31st October, 2003 at 14:41:11 -

Your method doesn't work, but I figured it out myself, you WILL want to know this JonWoG, i know:

Onloop + Left$(Edittext$("Edit"),1) <> " "
Set string to: string$("String 2")+ Left$(Edittext$("Edit"),1)
Set edit text to: Right$(Edittext$("Edit"),Len(Edittext$("Edit")) - 1)

Onloop + Left$( Edittext$( "Edit" ), 1 ) = " "
Set string to: string$( "String 2" ) + "_"
Set edit text to: Right$( Edittext$( "Edit" ), Len( Edittext$( "Edit" ) ) - 1 )

Thanks to JonWoG for the idea of using those functions

Image Edited by the Author.

 
n/a

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
31st October, 2003 at 16:21:38 -

ohhh... we've been doing that in VB...

*hits self for not realising that could be applied to MMF*

ah well.

 
www.thenatflap.co.uk

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
31st October, 2003 at 17:50:28 -

Yeah, I should have known, in ASP! yeah... doh!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click