bangali_beta 11 Posted July 11, 2016 Report Share Posted July 11, 2016 Hi, I know we use the $trim to erase any space prior to the input but whatabout erasing any space after the user's input in the UI ? Quote Link to post Share on other sites
pash 504 Posted July 11, 2016 Report Share Posted July 11, 2016 try ui text box("Enter Text",#Text) set(#Text,$trim(#Text),"Global") 2 Quote Link to post Share on other sites
bangali_beta 11 Posted July 13, 2016 Author Report Share Posted July 13, 2016 (edited) try ui text box("Enter Text",#Text) set(#Text,$trim(#Text),"Global") That is for erasing text before the user input. I said about erasing text after the user input (erase trailing white space characters).Thanks for trying to help though. Edited July 13, 2016 by bangali_beta Quote Link to post Share on other sites
HelloInsomnia 1103 Posted July 13, 2016 Report Share Posted July 13, 2016 That is for erasing text before the user input. I said about erasing text after the user input (erase trailing white space characters).Thanks for trying to help though. That will remove leading and trailing spaces, meaning: before and after. The $trim function is the exact function you want to use in this situation. Example: set(#Text," this is some text ","Global") set(#Text,$trim(#Text),"Global") 1 Quote Link to post Share on other sites
bangali_beta 11 Posted July 14, 2016 Author Report Share Posted July 14, 2016 That will remove leading and trailing spaces, meaning: before and after. The $trim function is the exact function you want to use in this situation. Example: set(#Text," this is some text ","Global") set(#Text,$trim(#Text),"Global") I didn't know it erases trailing white characters! Thanks for bringing it to my attention.I have LIKED both your and PASH's posts.Thank you both! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.