New topic: Whitespace in the beggining
<http://forums.realsoftware.com/viewtopic.php?t=29698> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message shaggymac Post subject: Whitespace in the begginingPosted: Sun Aug 23, 2009 11:39 am Joined: Fri Feb 29, 2008 5:25 pm Posts: 376 How can I remove Whitespaces in the beginning of a textfield Example: TextField1.Text has data " FirstName" How can I remove all the Spaces before First name? _________________ http://www.oneoranephone.com Free calls to USA & Canada Free calls to Europe or Asia Free calls to Puerto Rico Plans starting at $14.95 http://www.mupromo.com/?ref=4850 Today's MacUpdate Promo, 40% off Top pony Post subject: Re: Whitespace in the begginingPosted: Sun Aug 23, 2009 11:41 am Joined: Sat Nov 11, 2006 2:43 pm Posts: 194 Location: DFW area, Texas, USA Use Ltrim Code:TextField1.Text =LTrim(TextField1.Text) or Trim to remove whitespace from both sides Code:TextField1.Text =Trim(TextField1.Text) or RTrim for right side Code:TextField1.Text =RTrim(TextField1.Text) Top pony Post subject: Re: Whitespace in the begginingPosted: Sun Aug 23, 2009 11:46 am Joined: Sat Nov 11, 2006 2:43 pm Posts: 194 Location: DFW area, Texas, USA You can also use this syntax Code:TextField1.Text =TextField1.Text.LTrim Top shaggymac Post subject: Re: Whitespace in the begginingPosted: Sun Aug 23, 2009 12:26 pm Joined: Fri Feb 29, 2008 5:25 pm Posts: 376 Thank You _________________ http://www.oneoranephone.com Free calls to USA & Canada Free calls to Europe or Asia Free calls to Puerto Rico Plans starting at $14.95 http://www.mupromo.com/?ref=4850 Today's MacUpdate Promo, 40% off Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
