Re: Plain text library stacks

2015-04-22 Thread Peter W A Wood
Hi Thierry Thanks for the suggestion. Actually, I wasn’t thinking of Monte’s lcVCS. As I remember, the post that I saw suggested you could create a library stack in a text editor and then load it into LiveCode. Kind regards Peter > On 23 Apr 2015, at 13:45, Thierry Douez wrote: > > Hi

Re: Plain text library stacks

2015-04-22 Thread Thierry Douez
Hi Peter, Are you thinking of this: http://forums.livecode.com/viewtopic.php?f=77&t=18748&p=106514&hilit=monte+save+stack#p106514 HTH, Thierry > I remember reading a message to the effect that one of the recent releases to > the LiveCode engine included an enhancement to load “plain text”

Fwd: Plain text library stacks

2015-04-22 Thread Peter W A Wood
I remember reading a message to the effect that one of the recent releases to the LiveCode engine included an enhancement to load “plain text” library stacks. I searched the forum and clicked relevant threads without being able to find the post that I remember. Is it possible to load a Library

Re: fastest way to search an array?

2015-04-22 Thread Rick Harrison
Hi Richard, Apparently it worked after all in Safari, I was just expecting to see a webpage and wasn’t expecting an immediate download, without much of a warning. FireFox made things a little more apparent. Thanks, Rick > On Apr 22, 2015, at 8:08 PM, Richard Gaskin > wrote: > > Works in Fir

Android Intents/iOS Extensions?

2015-04-22 Thread Richard Gaskin
I'd like to have an app be able to accept data from other programs, like when you click the Share button in an image gallery and a list of programs pops up that can accept images - I'd like mine to be among them. I can see from the iOS and Android docs how to register that support in the manif

Re: fastes way to search an array?

2015-04-22 Thread Richard Gaskin
Alex Tweedly wrote: > On 22/04/2015 23:51, Richard Gaskin wrote: >> >> May not be much of a need, though, since traversing arrays with what >> we have is pretty fast - from my earlier email: >> >>go url "http://fourthworld.net/lc/array_access_speeds.livecode"; ... > When I try this with 6.7,

Re: fastes way to search an array?

2015-04-22 Thread Richard Gaskin
Works in Firefox and Chrome as well. Andre might suggest maybe Safari's broken. :) -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.com

Re: fastes way to search an array?

2015-04-22 Thread Phil Davis
I tried it from the message box - it works. Phil On 4/22/15 4:40 PM, Rick Harrison wrote: Hi Richard, I tried this url in Safari - it didn’t work. Are you sure this is the correct link? Thanks, Rick go url "http://fourthworld.net/lc/array_access_speeds.livecode"; -- Richard Gaskin F

Re: fastes way to search an array?

2015-04-22 Thread Alex Tweedly
Note the "go url " - it's intended to be typed into the message box to load the stack into Livecode IDE. On 23/04/2015 00:40, Rick Harrison wrote: Hi Richard, I tried this url in Safari - it didn’t work. Are you sure this is the correct link? Thanks, Rick go url "http://fourthworld.

Re: fastes way to search an array?

2015-04-22 Thread Alex Tweedly
On 22/04/2015 23:51, Richard Gaskin wrote: May not be much of a need, though, since traversing arrays with what we have is pretty fast - from my earlier email: go url "http://fourthworld.net/lc/array_access_speeds.livecode"; And the conclusion within that stack says .. The results here r

Re: fastes way to search an array?

2015-04-22 Thread Rick Harrison
Hi Richard, I tried this url in Safari - it didn’t work. Are you sure this is the correct link? Thanks, Rick > > go url "http://fourthworld.net/lc/array_access_speeds.livecode"; > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, a

Re: fastes way to search an array?

2015-04-22 Thread Peter Haworth
Out of interest, I added a test which used combine and filter. It took around 3 times longer than the other two tests. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Wed, Apr

Re: fastes way to search an array?

2015-04-22 Thread Richard Gaskin
Mike Bonner wrote: I wonder how easy it would be to add an option to arrayencode. It already flattens an array nicely, but not in a searchable way. It would be cool to add an optional argument that still flattens, but doesn't encode. The code to traverse the array is already there, with an opt

Re: fastes way to search an array?

2015-04-22 Thread Mike Bonner
I wonder how easy it would be to add an option to arrayencode. It already flattens an array nicely, but not in a searchable way. It would be cool to add an optional argument that still flattens, but doesn't encode. The code to traverse the array is already there, with an option to leave the data

Re: fastes way to search an array?

2015-04-22 Thread Phil Davis
Hi Tiemo, How many levels deep are the array elements you want to search? How many words might each of the searchable array elements contain? How is the array keyed - by sequential number, a preassigned numeric ID, a content description, ...? Would it be worth your time when loading the prim

Re: fastes way to search an array?

2015-04-22 Thread Bob Sneidar
I think this all underscores what I have been saying for some time, that there needs to be search/sort functionality for arrays built into the engine. Sure it can be done procedurally but the engine would handle it so much faster. I should submit a feature request or vote for an existing one.

Re: The "FIX:" is in

2015-04-22 Thread Mike Kerner
WOOHOO! 14475 and 14802 awaiting merge, now we wait... 8 is gonna be great - even more of the IDE will be easier to work on... On Wed, Feb 11, 2015 at 11:01 AM, Richard Gaskin wrote: > Mike Kerner wrote: > >> Next FIX: posted: 14475 - Project Browser doesn't hold resize. Yeah, it's >> another

Re: Stack is Dirty?

2015-04-22 Thread Peter Haworth
I believe it's the global array property gRevStackStatus which is keyed by short stack name. However, not all changes to the stack result in it being marked dirty in gRevStackStatus as I discovered recently. For example, deleting a stack by script does not not result in it being marked as dirty.

Re: Stack is Dirty?

2015-04-22 Thread Richard Gaskin
Ray wrote: I believe there's a key word which is a property you can use to detect whether a stack has changes which have not yet been saved. It's something like stackIsDirty but I can't find it anywhere. Does anybody remember this? There is a Mac-only stack property, the modifiedMark, which c

Re: fastes way to search an array?

2015-04-22 Thread Richard Gaskin
Tiemo wrote: > I have an array with 2 records, where I want to extract all > records, which either "begins with" or "contains" a search string. > > Up to now I just loop thru the whole array, do the compare and > extract the result records. I wonder, if there is a way to speed > up this searc

Re: mobileControlDo

2015-04-22 Thread Mark Waddingham
Hi Pierre, There is definitely code in the engine to feed the (string) result from the JS script back to 'the result' variable. I've just tried (on iOS): mobileControlDo sBrowserId, "execute", "1+1" answer the result For me at least, this results in an answer dialog popping up containing the

Re: fastes way to search an array?

2015-04-22 Thread Rick Harrison
Hi Tiemo, The computer industry changes so quickly now that you won’t have to wait very long for the machines to get faster. Cheers, Rick > On Apr 22, 2015, at 11:15 AM, Tiemo Hollmann TB wrote: > > Hi Rick, > On my new and fast development machine the search is pretty fast and > optimizatio

AW: fastes way to search an array?

2015-04-22 Thread Tiemo Hollmann TB
Hi Rick, On my new and fast development machine the search is pretty fast and optimization wouldn't be necessary. But I am not sure, how it behaves on old and weak computers out there in the wild. Perhaps I have to reactivate one of my old ones for testing. Splitting into alphabetical parts is i

Re: fastes way to search an array?

2015-04-22 Thread Geoff Canyon
One way to do this would be combine the array (or maintain a duplicate copy) and use the filter command to do the search. On Wed, Apr 22, 2015 at 8:44 AM, Rick Harrison wrote: > Hi Tiemo, > > What is the average and worst time that it takes to search your 20,000 > record array now? > Are there u

Re: fastes way to search an array?

2015-04-22 Thread Rick Harrison
Hi Tiemo, What is the average and worst time that it takes to search your 20,000 record array now? Are there users other than you involved? Is it worth the time it will take you to optimize the code for the faster execution? Now that you’ve hopefully answered these questions for yourself, and

Colorizing XML

2015-04-22 Thread Malte Brill
Hi, I have the need to display XML and colorize it like for example Notepad++ does. Does anybody happen to have written a script that does this already? All the best, Malte ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit thi

fastes way to search an array?

2015-04-22 Thread Tiemo Hollmann TB
Hello, I have an array with 2 records, where I want to extract all records, which either "begins with" or "contains" a search string. Up to now I just loop thru the whole array, do the compare and extract the result records. I wonder, if there is a way to speed up this search? E.g., does it m

Re: mobileControlDo

2015-04-22 Thread Pierre Sahores
> Le 22 avr. 2015 à 10:46, David Bovill a écrit : > > Hi Pierre. Thanks fir the input Mike. I'd like to get to the bottom of this > as well. > > Pierre if you could post the code you are testing that would be great? > > I'd like to know how this sots with near-future Javascript plans. Is this

Evernote API

2015-04-22 Thread David Bovill
I've made a start on creating an Evernote APi for Livecode. Has anyone else tried this and got any code they would be happy to add to a community effort? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsub

Re: Selecting a Line in the Script Editor Window

2015-04-22 Thread Richmond
On 22/04/15 01:23, Ray wrote: Bob - thanks! I thought I had tried all forms of this syntax. How'd I miss that? Makes me feel pretty stupid as well :P Mainly because it should be moronically obvious. Richmond. On 4/22/2015 12:09 AM, Bob Sneidar wrote: select line 542 of fld "Script" of sta

Stack is Dirty?

2015-04-22 Thread Ray
I believe there's a key word which is a property you can use to detect whether a stack has changes which have not yet been saved. It's something like stackIsDirty but I can't find it anywhere. Does anybody remember this? ___ use-livecode mailing lis

Re: mobileControlDo

2015-04-22 Thread David Bovill
Hi Pierre. Thanks fir the input Mike. I'd like to get to the bottom of this as well. Pierre if you could post the code you are testing that would be great? I'd like to know how this sots with near-future Javascript plans. Is this something that is being looked at being addressed with the intended

Re: Selecting a Line in the Script Editor Window

2015-04-22 Thread Ray
Mike - I had actually done a more complicated work-around. This is better. I forgot about the 'with messages' option with the wait command. Thanks! On 4/22/2015 1:35 AM, Mike Bonner wrote: meant to say wait 50 millisec with messages On Tue, Apr 21, 2015 at 5:33 PM, Mike Bonner wrote: Ju

Re: mobileControlDo

2015-04-22 Thread Pierre Sahores
No shared clipboard between the js instance and the mobile browser instance said, at some point, RunRev... > Le 22 avr. 2015 à 04:19, Mike Bonner a écrit : > > Ah k. I had just looked at this thread( > http://forums.livecode.com/viewtopic.php?f=53&t=11730&p=55347&hilit=mobilecontroldo#p55347 >