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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Removing Empty Line From String

Post by Googie85 »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Removing Empty Line From String

Post by jmburnod »

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
https://alternatic.ch
Googie85
Posts: 227
Joined: Tue Aug 05, 2014 10:07 am

Re: Removing Empty Line From String

Post by Googie85 »

Works Great!!

Thanks for your help!!!
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Removing Empty Line From String

Post by Klaus »

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