Re: Missing digits when replacing single digit item with two digit item?

2014-08-03 Thread Brahmanathswami
John: I've had gremlins like this in the past where certain functions run before the "interior" expression. Or put another way: what is inside parentheses is not always evaluated as expected when running inside a function request. I have never been able to determine a recipe, but my solutio

Re: OpenControl

2014-08-03 Thread J. Landman Gay
On 8/3/2014, 4:03 PM, Mats Wilstrand wrote: I assume you're using a background grp. If so I have used the "focusOut" message to fire some action in the self-contained grp when the card changes. The "focusIn" message is not received by the group on crad change. This is kind of counter intuitive im

Re: Missing digits when replacing single digit item with two digit item?

2014-08-03 Thread hh
Hi John, instead of decimals use true hex (has 15 "digits") OR, very effective, "dadaNumbers" (my youngest daughter named this) you may use e.g. n=48 or n=65 function dec2dada dc,n return numToByte(n+dc) end dec2dada function dada2dec hx,n return byteToNum(hx)-n end dada2dec __

Re: use-livecode Digest, Vol 131, Issue 5

2014-08-03 Thread William Waldman
Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "h...@klht.org". http://www.facebook.com/kingStamford"; target="_new">http://forum.klht.org/Social_Media_Images/fb.png"; border="0"> https://twitter.com/kingstamford"; target="_new">http:/

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Richard Gaskin
Mike Kerner wrote: The problem we have with arrays is that they don't let us really use indirection, i.e. pointers/handles. It's a lot easier to write generic handlers for a screen full of controls with pointers/handles. "DO" is ok, but it's the same problem we've always had with "DO", namely

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Mike Kerner
The problem we have with arrays is that they don't let us really use indirection, i.e. pointers/handles. It's a lot easier to write generic handlers for a screen full of controls with pointers/handles. "DO" is ok, but it's the same problem we've always had with "DO", namely it's slow. It's very,

Re: Missing digits when replacing single digit item with two digit item?

2014-08-03 Thread JOHN PATTEN
And here is the button script to move the player’s game piece: on mouseUp put cd fld "username" of cd 1 into tTargetPlayer put the loc of cd btn tTargetPlayer into tTargetPlayerLoc put 1 into x repeat 15 put the id of cd button ( "Button" && x ) & return after GameSpots add

Re: Missing digits when replacing single digit item with two digit item?

2014-08-03 Thread JOHN PATTEN
Here’s the server script: On Aug 3, 2014, at 7:32 PM, JOHN PATTEN wrote: > Hello! > > I have 15 buttons on a card. They are each named Button 1, Button 2, Button > 3, etc. I have another button that I am using as a game piece. It moves > around the digital game board to the loc of each of t

Missing digits when replacing single digit item with two digit item?

2014-08-03 Thread JOHN PATTEN
Hello! I have 15 buttons on a card. They are each named Button 1, Button 2, Button 3, etc. I have another button that I am using as a game piece. It moves around the digital game board to the loc of each of the other 15 buttons. I am attempting to save the players information into a single line

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Richard Gaskin
Mike Kerner wrote: And this won't be truly great until I can put "y" into x put 1 into value(x) because I can use this to get values but not set them, so I'm still stuck with do "put 1 into"&&x I'm all for inventing radical new programming paradigms, and maybe Open Language may help with s

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Mike Kerner
And this won't be truly great until I can put "y" into x put 1 into value(x) because I can use this to get values but not set them, so I'm still stuck with do "put 1 into"&&x On Sun, Aug 3, 2014 at 9:32 PM, J. Landman Gay wrote: > On 8/3/2014, 7:52 PM, Kay C Lan wrote: > >> Just did a quick

Re: Back to the Future.

2014-08-03 Thread Kay C Lan
On Sun, Aug 3, 2014 at 10:46 AM, hh wrote: > Do you see what I mean? In general you may be right and I'm with you to have > good new things. But sometimes there is also 'Much Ado About Nothing'. > > It's content that counts, not the wrapping ... Totally agree. Moore's Law may state that CPU perf

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread J. Landman Gay
On 8/3/2014, 7:52 PM, Kay C Lan wrote: Just did a quick test, New Stack, one fld "testField", in the msg box: put "hello" into fld ("test" & "Field") works fine It's very useful in repeat loops, for this sort of thing: repeat with x = 1 to the number of btns set the hilite of btn ("answer"

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Kay C Lan
On Sun, Aug 3, 2014 at 11:56 AM, Jerry Jensen wrote: > Interesting situation. The dictionary says what goes after the word "the" is > the name of the cprop. I'm not sure if a value (the result of evaluating an > expression) qualifies as a "name". Just did a quick test, New Stack, one fld "testF

Re: OpenControl

2014-08-03 Thread hh
I use to use "on openBackground" or "on preOpenBackground". [Good bye all, until next sunday. Was nice to be here. Mo-Fr I'm in the forum.] ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and ma

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread hh
Hello Peter. Let us argue constructively instead insisting on "rules". Currently wonderful things are possible to "set" (because "set" doesn't use internally "the"): set empty of this stack to "papperlapapp" set 7 of this stack to "empty" set 7.0 of this stack to "1" set 7.00 of this sta

RE: OpenControl

2014-08-03 Thread Mats Wilstrand
Hi Jaque. I assume you're using a background grp. If so I have used the "focusOut" message to fire some action in the self-contained grp when the card changes. The "focusIn" message is not received by the group on crad change. This is kind of counter intuitive imho but it works. All the best Mats

Re: OpenControl

2014-08-03 Thread Richmond
On 03/08/14 22:56, Richmond wrote: On 03/08/14 22:30, J. Landman Gay wrote: I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack. The preOpenControl a

Re: OpenControl

2014-08-03 Thread Richmond
On 03/08/14 22:30, J. Landman Gay wrote: I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack. The preOpenControl and openControl messages are only sen

Re: OpenControl

2014-08-03 Thread Mark Schonewille
Hi, Include a front script in your group and add a preOpenCard handler to that front script. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for

OpenControl

2014-08-03 Thread J. Landman Gay
I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack. The preOpenControl and openControl messages are only sent the first time the shared group is draw

The man's a beast.

2014-08-03 Thread Richmond
Try it: https://www.facebook.com/download/792824757415236/speeder_too.livecode.zip Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Peter Haworth
Hi Richard, Just tried it with an arithmetic expression and it generated the same error, with or without parens. I'll say again, since it seems to be causing some confusion, the parens aren't really the issue other than they should force the expression between them to be evaluated before the rest

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread Peter Haworth
On Sun, Aug 3, 2014 at 4:29 AM, hh wrote: > This is a syntax rule: "the" is followed by the name of a property or > function. > That's why no parentheses are allowed to follow in the name, else date() > couldn't be equivalent to "the date". > > > Peter H. wrote : > > Here's the one that catches

Re: use-livecode Digest, Vol 131, Issue 4

2014-08-03 Thread Richmond
On 03/08/14 15:53, hh wrote: Hi answeringro...@klht.org, I'm a robot of h...@livecode.org and instructed to post nothing useful. I'm so lonely in this world of human beings. Could we arrange a meeting in Silicon Valley this evening? Please leave for that your office for a week and delegate any

"Go Big"

2014-08-03 Thread Richmond
I have just checked the Spam folder of my Yahoo e-mail and found a message from RunRev entitled "Go Big", which, unsurprisingly, end up in the Spam. From now on I will treat any e-mails that have 'Big', 'Enlarge' and associated words as communications from RunRev. Unless, of course, RunRev re

Re: use-livecode Digest, Vol 131, Issue 4

2014-08-03 Thread hh
Hi answeringro...@klht.org, I'm a robot of h...@livecode.org and instructed to post nothing useful. I'm so lonely in this world of human beings. Could we arrange a meeting in Silicon Valley this evening? Please leave for that your office for a week and delegate any help to the humans. HAL42, p

Re: duplicates of parts of a line in list

2014-08-03 Thread hh
Never mind, just try: put myCounter(fld "X") into fld "Y" That's life - more exactly, that's LiveCode: s is an empty string, created by LC for you f is an empty array variable, created by LC for you Did you already look in the LC-forum? There is a lot of help and there are some impressively good

Re: duplicates of parts of a line in list

2014-08-03 Thread Jim sims
Very nice :-) Thank you! sims Can you explain what the the "f" in the following line means/signifies? put cr & l & "_" & f[char 1 to 2 of l &comma& char 7 to 8 of l] after s On Sun, Aug 3, 2014 at 1:03 PM, hh wrote: > Do you mean char 7 to 8? > And list 2 is not the result of this cou

Re: duplicates of parts of a line in list

2014-08-03 Thread hh
Sorru "ell" and "one" are hard to distinguish. SO function myCounter myList repeat for each line i in myList if i is empty then next repeat add 1 to f[char 1 to 2 of i &comma& char 7 to 8 of i] end repeat repeat for each line i in myList if i is empty then next repeat put cr

Re: duplicates of parts of a line in list

2014-08-03 Thread hh
Do you mean char 7 to 8? And list 2 is not the result of this counting for list 1? Should be 08:00_d3_180_Monica_pink_1 10:45_d2_90_Mary_orange_6 10:00_d2_90_Mary_orange_6 10:15_d2_90_Mary_orange_6 10:30_d2_90_Mary_orange_6 10:00_d2_90_Mary_orange_6 10:00_d2_90_Mary_orange_6 12:30_d5_45_Mary_blue_

Re: [TAO] value() to obtain pointer functionality

2014-08-03 Thread hh
Hi Peter and all, (please have in mind, that I'm not a native speaker and am 18 months with LC. So the following will be a bit 'bumpy'. I write just as I understand it, no arrogance intended with my phrasing and wording.) This is a syntax rule: "the" is followed by the name of a property or fun

Re: use-livecode Digest, Vol 131, Issue 4

2014-08-03 Thread William Waldman
Thanks for your message. I am out of the office this week. If you need immediate assistance, please email "h...@klht.org". http://www.facebook.com/kingStamford"; target="_new">http://forum.klht.org/Social_Media_Images/fb.png"; border="0"> https://twitter.com/kingstamford"; target="_new">http:/

duplicates of parts of a line in list

2014-08-03 Thread Jim sims
I have a list of items such as in example 1 shown below. I want to record how many are the same but only the same by char 1 to 2 and char 6 to 7 then place that number of duplicates after each line, as in the second example list. Any ideas for doing this? Thanks, sims --- LIST 1 08:00_d3_180_M

Re: Will the new Widgets system allow LiveCoders to implement these?

2014-08-03 Thread Mark Schonewille
Hi Lyn, As I understand it, Widgets will exist inside the stack window, just like controls. They are drawn in what RunRev calls a canvas, in the same layer as current controls. This might impose some limitations on what is possible. Then again, since you can hook directly into the API of the

Will the new Widgets system allow LiveCoders to implement these?

2014-08-03 Thread Lyn Teyla
Hi all, A preview of the Widgets & Themes project was shown last month by Kevin: http://livecode.com/blog/2014/07/08/the-next-generation-widgets-themes/ Will the following missing GUI items be possible to implement via Widgets (i.e. solely via the new "lower-level" LiveCode)? 1. _Nat

Re: Back to the Future.

2014-08-03 Thread Richmond
On 03/08/14 05:46, hh wrote: It's content that counts, not the wrapping ... This is very much the case, plus the fact that most people in the world do NOT need the "fastest Mac one currently buy" despite the hype. I have a cousin who runs a sort of farm for socially and mentally disturbed