OK. I give up (Word delimiting)

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: OK. I give up

Post by FourthWorld » Thu Aug 23, 2018 8:58 pm

dunbarx wrote:
Thu Aug 23, 2018 8:55 pm
Richard.

It may be a marginal issue, but if LC considers tabs to be word delimiters and HC does not, the number of words in a particular processed string may give unexpected results. I am constantly taking strings with tabs and counting words. HC would not have condoned that.
Words are delimited by white space. If HC did not include tabs, CRs, and other characters in addition to space as word delimiters then it was broken and there should be no problem with making LC's implementation correct as you requested.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: OK. I give up

Post by dunbarx » Thu Aug 23, 2018 9:15 pm

HC limited itself to returns and spaces.

LC added tabs.

I like tabs, because a great deal of the work I am doing for my current project has much tab delimited text that requires both the counting of words and the isolation of particular words. I do not need to set the itemDel to tab to do this.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: OK. I give up (Word delimiting)

Post by dunbarx » Thu Aug 23, 2018 9:17 pm

I modified the title of this thread, since it may actually be of interest to some, and not just a spate of whining by me.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: OK. I give up (Word delimiting)

Post by FourthWorld » Thu Aug 23, 2018 10:12 pm

Nicely done on the thread title. xTalk word parsing is often a murky subject for newcomers. The new thread title will help folks find this useful discussion. Thanks.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”