Counting problem

2013-05-24 Thread dunbarx
I know I am going to feel like a dope, but why does the first script always properly give ten counts in the array variable "counter", but the second can give anywhere from five to sixteen, and maybe others? on mouseUp put "a,b,c,d,e,f,g,h,i,j" into temp repeat 10 get any item of tem

Re: Counting problem

2013-05-24 Thread Colin Holgate
Both scripts give me the same randomness. Are you checking the results like this?: put the number of elements in counter ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subsc

Re: Counting problem

2013-05-24 Thread Mike Bonner
Welcome to bizarro land where adding 1... doesn't. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Counting problem

2013-05-24 Thread Peter Haworth
On Fri, May 24, 2013 at 2:56 PM, wrote: > I know I am going to feel like a dope, but why does the first script > always properly give ten counts in the array variable "counter", but the > second can give anywhere from five to sixteen, and maybe others? > > > > on mouseUp >put "a,b,c,d,e,f,g,h

Re: Counting problem

2013-05-24 Thread Peter Haworth
On Fri, May 24, 2013 at 2:56 PM, wrote: > get any item of temp I almost hate to mention this, but would the "any" keyword have any use in the recent thread about sorting by random numbers? Pete lcSQL Software ___ use-livecode

Re: Counting problem

2013-05-24 Thread Mike Bonner
Does NOT work for me, tried 5.5.1 to 6.0.1 (community) and it just does random freakishness. On osx ML. On Fri, May 24, 2013 at 4:16 PM, Peter Haworth wrote: > On Fri, May 24, 2013 at 2:56 PM, wrote: > > > I know I am going to feel like a dope, but why does the first script > > always proper

Re: Counting problem

2013-05-24 Thread Mike Bonner
Just tested by changing the line to.. add 1 to tcounter[( item random( the number of items in temp) of temp)] same result, very weird. On Fri, May 24, 2013 at 4:19 PM, Peter Haworth wrote: > On Fri, May 24, 2013 at 2:56 PM, wrote: > > > get any item of temp > > > I almost hate to me

Re: Counting problem

2013-05-24 Thread Alex Tweedly
I see the same problem on both 5.5.3 and 6.0.1 - but testing in the message box. Oddly, I happened to notice that if I change the script to be put "a,b,c,d,e,f,g,h,i,j" into temp repeat 10 add 1 to counter[any item of temp] put counter["b"] into tJunk -- i.e. I add a si

Re: Counting problem

2013-05-24 Thread dunbarx
ever, something like: a,2 c,3 d,1 f,1 h,1 e,2 j,2 Still don't care about the keys. Count is 12. I have seen from 5 up to 16. Craig -Original Message- From: Colin Holgate To: How to use LiveCode Sent: Fri, May 24, 2013 6:15 pm Subject: Re: Counting problem Both scripts gi

Re: Counting problem

2013-05-24 Thread dunbarx
Alex. I am the kind of guy that is happy to solve a problem without understanding it. But this one is, er, bugging me. Craig -Original Message- From: Alex Tweedly To: use-livecode Sent: Fri, May 24, 2013 7:11 pm Subject: Re: Counting problem I see the same problem on both 5.5.3

Re: Counting problem

2013-05-25 Thread Jacques Hausser
> > > I am the kind of guy that is happy to solve a problem without understanding > it. But this one is, er, bugging me. > > > Craig > > > > -Original Message- > From: Alex Tweedly > To: use-livecode > Sent: Fri, May 24, 2013 7:11 pm > Subje

Re: Counting problem

2013-05-25 Thread Dar Scott
I thought about this when I thought the problem was just picking a random answer. I made a simple sorting function and I didn't use 'any' because I needed the value and the position. Dar On May 24, 2013, at 4:19 PM, Peter Haworth wrote: > On Fri, May 24, 2013 at 2:56 PM, wrote: > >> get a

Re: Counting problem

2013-05-25 Thread Dar Scott
r his amazing discovery) > > Jacques > > > > > Le 25 mai 2013 à 04:26, dunb...@aol.com a écrit : > >> Alex. >> >> >> I am the kind of guy that is happy to solve a problem without understanding >> it. But this one is, er, bugging me. >> >>

Re: Counting problem

2013-05-25 Thread Peter Haworth
On Sat, May 25, 2013 at 8:41 AM, Dar Scott wrote: > Putting > > local tcount > > at the top of the handler fixes this for me. (Maybe somebody already said > that.) > > This is a scary bug for me. I quit LiveCode after the tests. > Hi Dar, I just posted that earlier this morning but it

Re: Counting problem

2013-05-25 Thread Jacques Hausser
Perhaps even stranger: if you start for example with put "a,b,c,d,e,f,g,h,i,j" into temp put 0 into tcount delete variable tcount repeat 10 add 1 to tcount[any item of temp] end repeat the loop works fine, even if the variable tcount was not defined as an array and was deleted before the loo

message too big (was Re: Counting problem)

2013-05-25 Thread Dar Scott
On May 25, 2013, at 10:30 AM, Peter Haworth wrote: > I just posted that earlier this morning but it caught in the dreaded > "message too big" trap - I sure wish that limit would be increased. I suspect the size assessment is before stripping the formatted version of the email. Maybe converting

Re: message too big (was Re: Counting problem)

2013-05-25 Thread dunbarx
forget, I always get the message bounced back, even if it is just a few lines. A pain. Craig -Original Message- From: Dar Scott To: How to use LiveCode Sent: Sat, May 25, 2013 2:45 pm Subject: message too big (was Re: Counting problem) On May 25, 2013, at 10:30 AM, Peter Haworth

Re: message too big (was Re: Counting problem)

2013-05-25 Thread stephen barncard
> To: How to use LiveCode > Sent: Sat, May 25, 2013 2:45 pm > Subject: message too big (was Re: Counting problem) > > > > On May 25, 2013, at 10:30 AM, Peter Haworth wrote: > > I just posted that earlier this morning but it caught in the dreaded > > "message too bi

Re: message too big (was Re: Counting problem)

2013-05-25 Thread Colin Holgate
I use Mail, and it has a Make Plain Text option. I needed to use that when posting a script a few days ago, to get it under the message size limit. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscrib

Re: message too big (was Re: Counting problem)

2013-05-25 Thread stephen barncard
perhaps the limits should be upped just a little bit to accommodate the bulky html baggage. 32k would be perfect. On Sat, May 25, 2013 at 12:46 PM, Colin Holgate wrote: > I use Mail, and it has a Make Plain Text option. I needed to use that when > posting a script a few days ago, to get it unde

Re: message too big (was Re: Counting problem)

2013-05-25 Thread Peter Haworth
I recognize there needs to be a limit but I think 16k is a little antiquated these days, 32k would be better. Pete lcSQL Software On Sat, May 25, 2013 at 12:51 PM, stephen barncard < stephenrevoluti...@barncard.com> wrote: > perhaps the limits should be upped just a littl

Re: message too big (was Re: Counting problem)

2013-05-25 Thread J. Landman Gay
On 5/25/13 2:36 PM, stephen barncard wrote: hmm.. I've seen my formatted text come back with colors before (at least shows on Gmail) *ON* applyStoredArrayToLocal *get* returnPrefFileName() *set* the custompropertyset of stack it To "Letters" *put* the cDataA of stack i

Re: message too big (was Re: Counting problem)

2013-05-25 Thread J. Landman Gay
On 5/25/13 2:31 PM, dunb...@aol.com wrote: I have a utility that I keep open doing just what Dar said. I push F12, and a script runs that takes each char tChar in the clipboardData and replaces it with numToChar(charToNum(tChar)). It might be quicker to just get the clipboardData["text"]. --

Re: message too big (was Re: Counting problem)

2013-05-27 Thread dunbarx
Jacque. So right. I just have never updated this thing, written years ago when my first message got waylaid. I will. Craig -Original Message- From: J. Landman Gay To: How to use LiveCode Sent: Sat, May 25, 2013 5:55 pm Subject: Re: message too big (was Re: Counting problem) On

Re: message too big (was Re: Counting problem)

2013-05-27 Thread J. Landman Gay
On 5/27/13 9:00 PM, dunb...@aol.com wrote: I just have never updated this thing, written years ago when my first message got waylaid. You should see some of my old stuff. Wait. No you shouldn't. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: message too big (was Re: Counting problem)

2013-05-28 Thread Mark Wieder
Jacque- Monday, May 27, 2013, 8:08:20 PM, you wrote: > You should see some of my old stuff. Wait. No you shouldn't. Whew! Stopped myself just in time. -- -Mark Wieder mwie...@ahsoftware.net ___ use-livecode mailing list use-livecode@lists.runrev.c