RE: filter?

2011-06-22 Thread Slava Paperno
> If you had two lines: > > 100 > 1001 > > ... would 100 be taken as a duplicate with wholematches set to false? > Can't > tell from the dictionary. If you're doing something like lineOffset(100, field 1), then 100 and 1001 will both match, unless you set wholeMatches to true. Slava

Re: group name persisting

2011-06-22 Thread Malte Brill
Pete, > The "last group" construct doesn't always return the id of the last created > group for some reason. Reason is that last [control] always returns the control with the highest layer. So if you nest a group inside of another one, its layer might not be the highest, thus this fails. All

Re: filter?

2011-06-22 Thread Pete
I may be wrong, but I don't think intersect solves the problem. If I understand the dictionary correctly, this will remove all the t1 keys that do NOT match t2 keys so it does the opposite of what is needed. Even if intersect does remove t1 keys that DO match t2 keys, that won't help find values

Re: filter?

2011-06-22 Thread Mark Wieder
Dick- Wednesday, June 22, 2011, 9:19:57 PM, you wrote: > Even though it may not always be the fastest, lean code has some appeal: > there's no loop. > function intersectionOfLists t1, t2 >split t1 by cr and tab >split t2 by cr and tab >intersect t1 with t2 >return the keys of t1

Re: filter?

2011-06-22 Thread Nicolas Cueto
Went with Michael Kann's solution. Thanks to all, tho. BTW, my request's reason had to do with Livecode's odd group behaviour. -- Nicolas Cueto (iPhone) On 2011/06/23, at 11:19, Michael Kann wrote: > If you want to use a SORT you can try something like the following: > > on mouseUp > put "1,

Re: filter?

2011-06-22 Thread Dick Kriesel
On Jun 22, 2011, at 7:30 PM, J. Landman Gay wrote: > On 6/22/11 9:19 PM, Michael Kann wrote: >> If you want to use a SORT you can try something like the following: >> >> on mouseUp >> put "1,2,3,4" into v >> put "1,2,3,4,5"& cr before v >> replace comma with cr in v >> sort v >> repeat for each

Re: Focus question

2011-06-22 Thread Bill Vlahos
I retested it and the windowshape property doesn't matter. It must be something else. Bill Sent from my iPhone On Jun 22, 2011, at 6:47 PM, Bill Vlahos wrote: > I set it in the IDE before saving the standalone. > > Bill > > Sent from my iPhone > > On Jun 22, 2011, at 2:41 PM, Mark Schone

Re: filter?

2011-06-22 Thread J. Landman Gay
On 6/22/11 9:19 PM, Michael Kann wrote: If you want to use a SORT you can try something like the following: on mouseUp put "1,2,3,4" into v put "1,2,3,4,5"& cr before v replace comma with cr in v sort v repeat for each line x in v if x& cr& x is not in v then put x& cr after h end

Re: filter?

2011-06-22 Thread Michael Kann
If you want to use a SORT you can try something like the following: on mouseUp put "1,2,3,4" into v put "1,2,3,4,5" & cr before v replace comma with cr in v sort v repeat for each line x in v   if x & cr & x is not in v then     put x & cr after h   end if end repeat put h into fld 3 -- "5" end mo

Re: Focus question

2011-06-22 Thread Bill Vlahos
I set it in the IDE before saving the standalone. Bill Sent from my iPhone On Jun 22, 2011, at 2:41 PM, Mark Schonewille wrote: > Hi Bill, > > Do you set the windowShape property when the stack opens? > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software

Re: filter?

2011-06-22 Thread Pete
I have a feeling this is probably going to get a lot of responses related to the most efficient way to do this! I have no idea how efficient this would be but I'll start the ball rolling with this code. repeat with x=1 to the number of lines in tlist1 if line x of tlist1 is not among the lines

Re: filter?

2011-06-22 Thread Roger Eller
On Wed, Jun 22, 2011 at 8:38 PM, Nicolas Cueto wrote: > Hi again. > > Given 2 lists of cr-delimited values (tList1, tList2), what's the fastest > way of getting the unique value(s)? > > Ex, "1,2,3,4" & "1,2,3,4,5" = "5" > (but cr instead of comma) > > Thanks. > > -- > Nicolas Cueto (iPhone) > Ass

filter?

2011-06-22 Thread Nicolas Cueto
Hi again. Given 2 lists of cr-delimited values (tList1, tList2), what's the fastest way of getting the unique value(s)? Ex, "1,2,3,4" & "1,2,3,4,5" = "5" (but cr instead of comma) Thanks. -- Nicolas Cueto (iPhone) ___ use-livecode mailing list use-li

Re: combination iPad/web app

2011-06-22 Thread Pierre Sahores
Should work as long as you accept to embed your app in the LC-plugin on the browser side. Le 22 juin 2011 à 20:08, Chris Sheffield a écrit : > Hi all, > > I'm hoping someone will have an opinion on this. > > What would be the feasibility of creating a single stack to run on both iPad > and in

Re: group name persisting

2011-06-22 Thread Warren Samples
On Wednesday, June 22, 2011 05:09:48 PM Pete wrote: > fingers crossed Nothing wrong with crossed. Just keep them where you can see them. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and ma

Re: group name persisting

2011-06-22 Thread Pete
I had this issue a while back. The "last group" construct doesn't always return the id of the last created group for some reason. I got round it with this code: *put* the last line of the groupIDs of this card into myGroupID I'm nervous about how reliable this is but it seems to be working f

Live LiveCode code event #28 Wrap up

2011-06-22 Thread Björnke von Gierke
Hi The show was great, as ever. But sadly, Andre accidentally deleted his presentation. He outlined a secure ftp external that he is working on. A replacement movie introduction will be up within the week. Judy however has her whole presentation ready for the archives, and it was a very inform

Re: Wondering about LC and HTML5

2011-06-22 Thread Chipp Walters
Is the King the one with the horse? On Wed, Jun 22, 2011 at 4:49 PM, Andre Garzia wrote: > no no no, you are doing it wrong, you need to attack straight away with the > KING the pawns and knights will see the king charging and will follow! > > ___

Re: Wondering about LC and HTML5

2011-06-22 Thread Andre Garzia
no no no, you are doing it wrong, you need to attack straight away with the KING the pawns and knights will see the king charging and will follow! On Wed, Jun 22, 2011 at 6:08 PM, Bob Sneidar wrote: > You keep your queen for 15 minutes??? I always use her to take as many > pawns as I can!! >

Re: Focus question

2011-06-22 Thread Mark Schonewille
Hi Bill, Do you set the windowShape property when the stack opens? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for

Re: group name persisting

2011-06-22 Thread Bob Sneidar
Actually that trick did work for me. LC 4.6.1. ;-) Bob On Jun 22, 2011, at 4:30 AM, Malte Brill wrote: > Hi Nicolas, > > as odd finger tricks won't help much (listmom anyone)... > > try > > reset the templateGroup > > before you regroup the controls. > > Hope that helps, > > Malte > > >

Re: Wondering about LC and HTML5

2011-06-22 Thread Bob Sneidar
You keep your queen for 15 minutes??? I always use her to take as many pawns as I can!! Bob On Jun 22, 2011, at 8:40 AM, Richard Gaskin wrote: > PS: I actually very much suck at chess, but my ineptitude with the game > doesn't stop me from enjoying it. If anyone wants an easy win just bring

Focus question

2011-06-22 Thread Bill Vlahos
I've created a Mac app which uses the Windowshape property. It works fine except that it opens either behind other windows or, even if it is the frontmost window, still doesn't actually have focus. I have to click anywhere on the window and then I can click on the button to get started. I want

combination iPad/web app

2011-06-22 Thread Chris Sheffield
Hi all, I'm hoping someone will have an opinion on this. What would be the feasibility of creating a single stack to run on both iPad and in a browser? Can it work? I understand there would have to be some code branching in order to handle the different environments. Would it be easier to main

Re: double byte chars

2011-06-22 Thread Bernard Devlin
I know this is a late reply (I just happen to be digging into unicode myself at the moment). Did you try "lock screen" and "unlock screen", bracketing the slow screen interactive code? Bernard On Mon, Jun 13, 2011 at 5:59 PM, Lars Brehmer wrote: > So out of curiousity, how can inserting the cur

Re: group name persisting

2011-06-22 Thread Wilhelm Sanke
On Wed, 22 Jun 2011, Nicolas Cueto wrote: Hi. I use the group command to group three groups, rename that new group to "gpABC", do some stuff to it, and then ungroup it. Oddly, if immediately afterwards I regroup the same three groups, the new group gets named "gpABC" instead of being automat

Re: Wondering about LC and HTML5

2011-06-22 Thread Richard Gaskin
Michael Kann wrote: > Richard, > > You're the chess grandmaster thinking nine moves ahead. I'm just > trying to figure out how the pieces move. Thanks for trying to > figure out what that stupid paragraph was supposed to mean. All > I was really trying to say was that we might use LiveCode to > g

Re: Wondering about LC and HTML5

2011-06-22 Thread Michael Kann
Richard, You're the chess grandmaster thinking nine moves ahead. I'm just trying to figure out how the pieces move. Thanks for trying to figure out what that stupid paragraph was supposed to mean. All I was really trying to say was that we might use LiveCode to gather useful code from websites

Re: Wondering about LC and HTML5

2011-06-22 Thread Michael Kann
John, Thanks for the heads-up. Keep 'em coming. Mike --- On Tue, 6/21/11, John Patten wrote: From: John Patten Subject: Re: Wondering about LC and HTML5 To: "How to use LiveCode" Date: Tuesday, June 21, 2011, 6:08 PM Hi All... FWIW, Nice site with some folks developing specific tools and A

Re: group name persisting

2011-06-22 Thread René Micout
His other message was very strange !!! Le 22 juin 2011 à 15:32, stephen barncard a écrit : > Nice one - who are you? troller or spammer? Or just an fool? > Personal Insults are verbotten here, you will get booted. > > On 22 June 2011 01:05, Luke Hall wrote: > >> >> by sticking ur finger up yo

Re: group name persisting

2011-06-22 Thread stephen barncard
Nice one - who are you? troller or spammer? Or just an fool? Personal Insults are verbotten here, you will get booted. On 22 June 2011 01:05, Luke Hall wrote: > > by sticking ur finger up your bum > Stephen Barncard San Francisco Ca. USA more about sqb

Re: group name persisting

2011-06-22 Thread Nicolas Cueto
> as odd finger tricks won't help much (listmom anyone)... Malte, wish you'd told me sooner. Wasn't sure which finger to use. So tried them all. But all I got in return for my discomfort were stinky fingers. BTW, wasn't that the title of a Stones album? > try > > reset the templateGroup > > befor

Re: group name persisting

2011-06-22 Thread Malte Brill
Hi Nicolas, as odd finger tricks won't help much (listmom anyone)... try reset the templateGroup before you regroup the controls. Hope that helps, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe