Removing Empty Line From String

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: heatherlaine, Klaus, FourthWorld, kevinmiller

Post Reply
Googie85
Posts: 98
Joined: Tue Aug 05, 2014 10:07 am

Removing Empty Line From String

Post by Googie85 » Sat Jul 08, 2017 8:57 am

Hi Guys!

I am trying to remove a blank line of a string. And in doing so, bring the contents below the blank line upwards in position. Any Ideas?

Many Thanks,

Googie.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2220
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Removing Empty Line From String

Post by jmburnod » Sat Jul 08, 2017 9:37 am

Hi
remove a blank line of a string

Code: Select all

filter myString without empty
All empty lines are deleted
bring the contents below the blank line upwards in position

Code: Select all

sort myString
All empty lines on top
Best regards
Jean-Marc

Googie85
Posts: 98
Joined: Tue Aug 05, 2014 10:07 am

Re: Removing Empty Line From String

Post by Googie85 » Sat Jul 08, 2017 11:42 am

Works Great!!

Thanks for your help!!!

Klaus
Posts: 10292
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Removing Empty Line From String

Post by Klaus » Sat Jul 08, 2017 12:22 pm

And this even works on a Mac, Linux, Server, iOS and Android! 8)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”