Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Ken Corey
*smile* That would be a "Harry met Sally" kind of thing. Oh dear, my wife would /not/ like hearing that. No, she's a long ago friend, and we've only recently reconnected thanks to Facebook. ...not that *I* ever go on, you understand. Uh...it's my wife, see. She goes on quite a bit and...uh

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Bob Sneidar
You are adding 1 to word 2 when there is no space. Tabs are not word delimiters. I may misunderstand the script though I haven't looked at it in depth. Bob On Jun 27, 2012, at 1:24 AM, Keith Clarke wrote: > Hi folks, > I'm working on a simple script to identify and count the unique words dum

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Dr. Hawkins
On Wednesday, June 27, 2012, Ken Corey wrote: > > I'm 47 now, and she *still* calls me 'Corey'. > does that make her, "Mrs. Ken"? :) -- The Hawkins Law Firm Richard E. Hawkins, Esq. (702) 508-8462 hawkinslawf...@gmail.com 3025 S. Maryland Parkway Suite A Las Vegas, NV 89109 _

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread pmbrig
nbr && "delimiters!" end if end if delete item i of dList end repeat return delimList end getDelimiters -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig -- View this message in context: http://runtime-revolution.278305.n

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Ken Corey
When I was 13, I got a crush on a girl who asked me my name when we were in a noisy room. 'Corey' was all she heard. Of course, being 13, I think I was 14 by the time I bashfully admitted that was my surname. I'm 47 now, and she *still* calls me 'Corey'. No offense taken. *grin* -Ken On

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Keith Clarke
the form: > > > "someWord" & tab & 1 > > > This throws the parser for a loop. > > > Craig Newman > > > > -----Original Message- > From: Keith Clarke > To: How to use LiveCode > Sent: Wed, Jun 27, 2012 4:25 am > Subject

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Keith Clarke
Whoops, sorry Ken - I was too busy copy & pasting your improvement on my code to proof-read my thank you email properly! Your help warranted a 'Mr. Corey' at the very least! :-) Best, Keith.. On 27 Jun 2012, at 11:23, Keith Clarke wrote: > Thanks John & Corey. ___

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread dunbarx
his throws the parser for a loop. Craig Newman -Original Message- From: Keith Clarke To: How to use LiveCode Sent: Wed, Jun 27, 2012 4:25 am Subject: Syntax for incrementing a numeric 'word' Hi folks, I'm working on a simple script to identify and count the unique words

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Keith Clarke
result" > end if > if boo > 0 then > add 1 to item 2 of line boo of fld "result" > end if > end repeat > > --sort lines of fld "result" numeric descending by item 2 of each > end mouseUp >> From: keith.cla...@clark

RE: Syntax for incrementing a numeric 'word'

2012-06-27 Thread John Dixon
") into boo if boo = 0 then put word count of fld "source" & tab & 1 & cr after fld "result" end if if boo > 0 then add 1 to item 2 of line boo of fld "result" end if end repeat --sort lines of fld

Re: Syntax for incrementing a numeric 'word'

2012-06-27 Thread Ken Corey
I built a label with multiple lines, put "1 2 3/n2 3 4/n3 4 5" into it and ran this line of code on it: add 1 to word 2 of line 2 of field "field" It worked just as you'd expect it to. However, this seems a very slow way to do it. Hashes work a treat for this kind of thing. on mouseUp

Syntax for incrementing a numeric 'word'

2012-06-27 Thread Keith Clarke
Hi folks, I'm working on a simple script to identify and count the unique words dumped into a 'Source' field to create a 'Results' list field with the word and counter. However, this script is throwing errors at the line when I attempt to increment the second word by adding 1 to it. What's wron