Re: Back to the Future.

2014-08-03 Thread Richmond
On 03/08/14 05:46, hh wrote: snip 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

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.

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

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

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. br a href=http://www.facebook.com/kingStamford; target=_newimg src=http://forum.klht.org/Social_Media_Images/fb.png; border=0/a a href=https://twitter.com/kingstamford;

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

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

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 i _

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 h...@livecode.org wrote: Do you mean char 7 to 8? And list 2 is not the result of

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: 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,

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: 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

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

2014-08-03 Thread Peter Haworth
On Sun, Aug 3, 2014 at 4:29 AM, hh h...@livecode.org 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

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

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:

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

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

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

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

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: [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 stack to 2 Now

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 j...@jhj.com 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

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 (answerx) to

Re: Back to the Future.

2014-08-03 Thread Kay C Lan
On Sun, Aug 3, 2014 at 10:46 AM, hh h...@livecode.org 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

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 intox On Sun, Aug 3, 2014 at 9:32 PM, J. Landman Gay jac...@hyperactivesw.com wrote: On 8/3/2014, 7:52 PM, Kay C Lan wrote:

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 intox I'm all for inventing radical new programming paradigms, and maybe Open Language may help with some

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

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

2014-08-03 Thread JOHN PATTEN
Here’s the server script: ?lc put $_POST[username] into tUsername put $_POST[ButtonSpot] into tButtonSpot put url(file:users.txt) into tUsersFile repeat for each line tLine in tUsersFile if item 1 of tLine is tUserName then put tButtonSpot into item 4 of tLine --when it gets to spot 10 it is

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 1 to

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: [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