DialogData

2013-07-29 Thread Cal Horner
Anyone done any study of the dialogdata command? What does the data structure look like? I'm assuming that it is held in an array. But I can't find anything that defines the array itself. ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: DialogData

2013-07-29 Thread Mark Schonewille
Hi, The dialogData is a global property. You decide the data structure. If you want to store a string, an array or binary data, that's up to you. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Re: How can I get Unicode Menu Items on Windows?

2013-07-29 Thread Support Toki
Hi, The best solution for using unicode menu is to add tags. The menuPick handler will get the tag as a parameter, and the tag is always ANSI on all platforms. For more explaination, check the keyword menu in the dictionary. The tag allows to manage cascading menus when menuHistory doesn't. I

Re: How can I get Unicode Menu Items on Windows?

2013-07-29 Thread Support Toki
Miss one line in the handler: on menuPick chosenItem switch chosenItem case ITEM1 -- put your stuff here break case ITEM2 ... end switch Thierry Arbellot Digital Salade website : www.tokitest.fr email : supp...@tokitest.fr AIM/iChat : supportToki Skype : support.toki Le 29/07/2013

Re: Finding matched parentheses

2013-07-29 Thread dfepstein
On second thought : function offsetPair a,b,str -- str cannot be more than one line    -- returns first instance of char a matching instance of char b in str, or 0 if no a or empty if no match    put offset(a,str) into ca    if ca = 0 then return 0    put numToChar(7) into char 1 to ca

Re: Finding matched parentheses

2013-07-29 Thread dunbarx
Hi. I tired your script on the string: aa(ss)(xx)(yy) it only returned the parens bracketing ss Craig Newman -Original Message- From: dfepstein dfepst...@comcast.net To: use-livecode use-livecode@lists.runrev.com Sent: Mon, Jul 29, 2013 10:56 am Subject: Re: Finding matched

Re: How can I get Unicode Menu Items on Windows?

2013-07-29 Thread in...@kenjikojima.com
Thierry, Yes, it works well. Thank you, -- Kenji Kojima / 小島健治 http://www.kenjikojima.com/ On Jul 29, 2013, at 5:49 AM, Support Toki wrote: Miss one line in the handler: on menuPick chosenItem switch chosenItem case ITEM1 -- put your stuff here break case ITEM2 ... end switch

Re: Finding matched parentheses

2013-07-29 Thread Peter Haworth
On Mon, Jul 29, 2013 at 9:07 AM, dunb...@aol.com wrote: I tired your script on the string: aa(ss)(xx)(yy) it only returned the parens bracketing ss I Think that's what he wants to do - just find the position of the first set of parentheses, taking nested parens into account. But not

revOnline and Open Source

2013-07-29 Thread Richmond
If one downloads a stack from revOnline how does an end-user know if it is to be considered open source (and, therefore, usable in other OSS projects) or not? Richmond. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url

Re: Finding matched parentheses

2013-07-29 Thread Geoff Canyon
On Mon, Jul 29, 2013 at 12:14 PM, Peter Haworth p...@lcsql.com wrote: Personally, I'd use the regex that Thierry posted a couple of days back. No recursion involved and one line of code does the job. If you're talking about: matchChunk(mystring,(\([^)]*\)).*,tstart,tEnd) That will return

Re: revOnline and Open Source

2013-07-29 Thread Monte Goulding
Read the authors license. If there's no license assume you have no right to use the code. -- M E R Goulding Software development services mergExt - There's an external for that! On 30/07/2013, at 4:03 AM, Richmond richmondmathew...@gmail.com wrote: If one downloads a stack from revOnline how

Re: Finding matched parentheses

2013-07-29 Thread dunbarx
Hmmm. I read the original post as finding the closing parenthesis ... of a pair Any pair? This seems to indicate that all nested parens have to be parsed as a whole. If you want to find a particular related couple, you have to use the correct ordered pair derived from the function. It

Re: [OT] Free Benchmarking Stuff

2013-07-29 Thread Alejandro Tejada
on Sun, 28 Jul 2013 Mark Wieder wrote: Use the revOnline interface in the IDE. Found it! :D Excellent start point for creating many specific tests for Livecode. This will prove to be an invaluable tool to sort the brave new world of Android devices... :o Many, many thanks for sharing this

open a substack in an opencard handler

2013-07-29 Thread Martin Koob
I am trying to have a substack open above the main stack when a card opens. What happens is the substack opens in front of the main stack but immediately the main stack moves to the front. I want the substack to stay above the main stack. Two illustrate this I created a simple stack with a main

Re: Finding matched parentheses

2013-07-29 Thread Peter Haworth
On Mon, Jul 29, 2013 at 1:15 PM, dunb...@aol.com wrote: I read the original post as finding the closing parenthesis ... of a pair You're right, sorry, forgot which regex was the one that worked. It was the following (which I found online so no credit to me): \?[^()]+)|(?R))*)\) This

Re: open a substack in an opencard handler

2013-07-29 Thread Mark Wieder
Martin- Monday, July 29, 2013, 3:07:57 PM, you wrote: I assume the problem is that when the opencard message ends the stack with the card with that handler becomes the active stack and moves to the front. Yes, that's exactly what's going on. You're not giving the openCard handler in the

[ANN] mApp 1.0.1

2013-07-29 Thread Monte Goulding
Hi Folks I normally don't spam this list with maintenance release announcements but this is a fairly critical one for mApp users wanting to work on LC 6.1+. It works around the crash when building on that version. mApp is available in the free section of the mergExt.com download page. For

Re: [ANN] mApp 1.0.1

2013-07-29 Thread Terry Judd
Thanks Monte. Terry... On 30/07/2013, at 09:52 AM, Monte Goulding wrote: Hi Folks I normally don't spam this list with maintenance release announcements but this is a fairly critical one for mApp users wanting to work on LC 6.1+. It works around the crash when building on that version.

Calendar time issue

2013-07-29 Thread Dan Friedman
Fellow LiveCoders... This is a little off-topic, but I am working on a calendar which reads and displays a variety of calendar formats. It's going well! However, when using the iCal format, I have noticed that my calendar is an hour off as compared to what it says on the web display of the

Re: Finding matched parentheses

2013-07-29 Thread dfepstein
Testing for speed, I found that my July 29 function--the one that uses lineDelimiter and itemDelimiter--is thwarted when two parens appear as consecutive characters, and gives the wrong answer in that case. Sorry about that. I may not have correctly implemented Peter Haworth's Regex string,

Re: Calendar time issue

2013-07-29 Thread Dan Friedman
Terry, No, they didn't. They are exactly the same! In fact, the calendars come from different accounts by the same company! I can't figure it out! Any other thoughts? -Dan Hi Dan - do they include timezone info in the header or events? Terry... On 30/07/2013, at 10:34 AM, Dan

Re: Calendar time issue

2013-07-29 Thread Terry Judd
On 30/07/2013, at 12:03 PM, Dan Friedman wrote: Terry, No, they didn't. They are exactly the same! In fact, the calendars come from different accounts by the same company! I can't figure it out! Any other thoughts? If they are in a different timezone to you then that's where I'd

delete Url on mobile

2013-07-29 Thread Thomas McGrath III
Can you delete a file on mobile if it is in the engine folder? delete URL (file: specialFolderPath(engine) / tName) Tom -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.com ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: delete Url on mobile

2013-07-29 Thread Thomas McGrath III
Neither one of these works in the simulator? delete URL (file: specialFolderPath(engine) / tName) delete file (specialFolderPath(engine) / tName) -- Tom McGrath III http://lazyriver.on-rev.com mcgra...@mac.com On Jul 29, 2013, at 10:19 PM, Thomas McGrath III mcgra...@mac.com wrote: Can

Re: delete Url on mobile

2013-07-29 Thread Gerry Orkin
On iOS at least you can't change the binary at run time in any way. Apple won't allow it. g On 30/07/2013, at 12:19 PM, Thomas McGrath III mcgra...@mac.com wrote: Can you delete a file on mobile if it is in the engine folder? delete URL (file: specialFolderPath(engine) / tName) Tom

Re: delete Url on mobile

2013-07-29 Thread J. Landman Gay
On 7/29/13 9:19 PM, Thomas McGrath III wrote: Can you delete a file on mobile if it is in the engine folder? delete URL (file: specialFolderPath(engine) / tName) I doubt it. I believe the commandment is: thou shalt not write, nor edit, nor delete, nor add to the sacred documents, lest

Re: [ANN] mApp 1.0.1

2013-07-29 Thread Gerry Orkin
Monte, thanks. Is there documentation for mApp? g On 30/07/2013, at 9:52 AM, Monte Goulding mo...@sweattechnologies.com wrote: Hi Folks I normally don't spam this list with maintenance release announcements but this is a fairly critical one for mApp users wanting to work on LC 6.1+. It

Re: [ANN] mApp 1.0.1

2013-07-29 Thread Monte Goulding
On 30/07/2013, at 2:20 PM, Gerry Orkin wrote: Monte, thanks. Is there documentation for mApp? There will be.. one day. It would be a good contribution if anyone's interested. I did a talk on it at the conference if you have the simulcast. I've just been too busy since the conference to put

Re: Finding matched parentheses

2013-07-29 Thread Mark Wieder
Geoff Canyon gcanyon@... writes: regex is notoriously unable to handle recursion. To see endless heated debate, search the web for how to parse HTML using regex. I found an old posting of my own on this topic... The center cannot hold it is too late.

Re: Finding matched parentheses

2013-07-29 Thread Peter Haworth
On Mon, Jul 29, 2013 at 6:57 PM, dfepst...@comcast.net wrote: I may not have correctly implemented Peter Haworth's Regex string, but I get wrong answers from writing the function as below -- offsetPair6((a(a))) returns 2 5. Hi David, The regex actually returns the string within the parens so