Preventing or Removing Line Breaks when Text is Entered
JoeB
Member Posts: 160
I'm using an 'enter name' feature in my app and would like to remove the line break if the user were to press 'return' while using the game salad keyboard entry function. I don't think I'd want to make a custom keyboard as it is a small app.
Currently, if the user presses return, the name moves up when it is displayed and it ruins part of the app.
Can anyone please help? Thank you.
Comments
I think you could parse out the line breaks if you knew the ascii symbol and used the textReplaceAll() function.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
textReplaceAll( self.TextAttribute ,"\n","")
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
@Armelline that worked perfectly! Thanks a lot!