Hanging indents?

2015-04-23 Thread Terry Judd
Has anyone managed to create a hanging indent within a LC field? I’ve played around with tabstops and indents (first, left whatever) but don’t seem to be getting anywhere. Any ideas? Terry… ___ use-livecode mailing list use-livecode@lists.runrev.com Pl

Re: Console container for put function?

2015-04-23 Thread Peter W A Wood
Hi Mike Thanks for your response. I should have explained why I was asking such a question. I’m planning on writing some library functions for testing that can be called from either a GUI stack or a server script. When called from a GUI script it will display its results in a Field, when calle

Re: Console container for put function?

2015-04-23 Thread Mike Bonner
Just a straight put is the way to go. Don't think you can "put before" because it doesn't have direct control of the console terminal scroll and cursor position. SO to achieve the same thing you could.. put "Hello " put "World" put return On Thu, Apr 23, 2015 at 9:52 PM, Peter W A Wood wrote: >

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Monte Goulding
On 24 Apr 2015, at 1:41 pm, Richard Gaskin wrote: > Right. I had mistakenly thought that was the mechanism for intents. > > If not for inter-app communications, what's the point of urkWakeUp? > > Who uses that, and what for? On iOS the Dropbox app uses it for authentication for third party a

Console container for put function?

2015-04-23 Thread Peter W A Wood
By experimenting, it seems that “putting” text into or after the message box container results in the test being output to the console (perhaps stdout, perhaps stderr). Running this script under LiveCodeServer: put "Hello" into message box put " World" after message box

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Richard Gaskin
Monte Goulding wrote: > >> On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > >> In my rabid desire for this it seems I've misunderstood what >> the urlWakeUp message and mobileGetLaunchUrl function are for. >> >> My hope was that urlWakeUp would launch my app and allow me to >> respond with a c

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Monte Goulding
On 24 Apr 2015, at 1:16 pm, Richard Gaskin wrote: > Monte Goulding wrote: > > > On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > > > >> Does that mean I should be able to add intents to my Android > >> build so my app can be among those that can receive specified > >> file types? > > > > Ye

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Richard Gaskin
Monte Goulding wrote: > On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > >> Does that mean I should be able to add intents to my Android >> build so my app can be among those that can receive specified >> file types? > > Yes and no, it means you could add the intent filters to your > manifest

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Monte Goulding
On 24 Apr 2015, at 11:38 am, Richard Gaskin wrote: > Does that mean I should be able to add intents to my Android build so my app > can be among those that can receive specified file types? Yes and no, it means you could add the intent filters to your manifest but there's still no way for yo

Re: mobileControlDo

2015-04-23 Thread Ralph DiMola
Pierre,  Nice!!! Also being able send a message from the browser to the app would be sweet. I have a html map. When you tap on a county a pick list of options is displayed. The java reloads the page and puts the x/y location in the url parameters. The app gets the page load message and retriev

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Richard Gaskin
Monte Goulding wrote: > The good news is you should be fine to copy the raw files from the > above pull request into the LC app bundle. > > https://raw.githubusercontent.com/montegoulding/livecode/feature/TemplateAppMetadata/ide-support/revsaveasandroidstandalone.livecodescript > > However, giv

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Monte Goulding
On 24 Apr 2015, at 8:08 am, Mark Wilcox wrote: >> On 23 Apr 2015, at 18:43, Richard Gaskin wrote: >> >> 1. Before I dive in, does anyone here know why this wouldn't work? > > Custom URLs and Intents are two different systems. The former requires the > app you receive data from to know about

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Monte Goulding
On 24 Apr 2015, at 9:37 am, Monte Goulding wrote: > Actually I've just reviewed my changes and it looks like I stuffed them up. > I'll submit another pull request in a minute and add custom plists for iOS > too. OK, here it is... sorry Jacque for leading you up a garden path on that forum to

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Monte Goulding
Actually I've just reviewed my changes and it looks like I stuffed them up. I'll submit another pull request in a minute and add custom plists for iOS too. On 24 Apr 2015, at 4:11 am, Richard Gaskin wrote: > I'm an optimist. :) > > Unless there's some technical reason this is murky, it seems l

Re: fastes way to search an array?

2015-04-23 Thread Mike Bonner
Ah k, so it would be situational. After reading back in the thread some, I suspect the tests would be 2 different strings, so testing for both would be necessary. I was just not grokking the double. Probably just easier to set up a single string and check for it twice. Either way, it runs throug

Re: fastes way to search an array?

2015-04-23 Thread Jerry Jensen
Actually it may be a bit faster with the two tests if a lot of them match at the beginning. Testing at the beginning (begins with) is a lot faster than spinning through the entire thing (contains), and if the first clause of the OR is satisfied, it won’t execute the second clause. So, maybe. I

Re: for you Wall Street fans...

2015-04-23 Thread Peter Bogdanoff
Of course it was because of LiveCode banging the opening bell. That reason is as good as, or better than any other reason. The truth may be more “mundane": > Despite the Nasdaq record, it was business as usual for many traders across > Wall Street. Several attributed the midday turnaround to mu

Re: Need Help With FTP

2015-04-23 Thread Phil Davis
Hi Gregory, I would probably use the "load" command because it's a non-blocking way to do it - it doesn't prevent interaction while it's working. Maybe something like this (I didn't test this): -- button -- on mouseUp doDownload end mouseUp -- card or stack -- # required: # fld "status

Re: fastes way to search an array?

2015-04-23 Thread Mike Bonner
Did some testing out of curiosity, and WOW this is fast. repeat for each key tKey in tArray if tArray[tKey] begins with tSearchString or \ tArray[tKey] contains tSearchString then put tKey & return after tResults end if end repeat The only question I have is.. why search for the sam

Re: for you Wall Street fans...

2015-04-23 Thread Colin Holgate
Perhaps not. That article does mention Apple in particular, and there was Apple news today about people receiving their Apple Watch orders earlier than expected. That may have helped. > On Apr 23, 2015, at 5:34 PM, Simon wrote: > > Did we do this??? > > http://www.wsj.com/articles/u-s-stock-

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Mark Wilcox
> On 23 Apr 2015, at 18:43, Richard Gaskin wrote: > > 1. Before I dive in, does anyone here know why this wouldn't work? Custom URLs and Intents are two different systems. The former requires the app you receive data from to know about your custom URL scheme. The same exists on both iOS and An

Re: fastes way to search an array?

2015-04-23 Thread Geoff Canyon
On Wed, Apr 22, 2015 at 6:22 PM, Peter Haworth wrote: > Out of interest, I added a test which used combine and filter. It took > around 3 times longer than the other two tests. > Yeah, I didn't expect this to be competitive except under specific circumstances -- if the filter command happens to

Re: for you Wall Street fans...

2015-04-23 Thread Simon
Did we do this??? http://www.wsj.com/articles/u-s-stock-futures-fall-1429791213 Simon -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/for-you-Wall-Street-fans-tp4691394p4691426.html Sent from the Revolution - User mailing list archive at Nabble.com. __

Need Help With FTP

2015-04-23 Thread Gregory Lypny
Hello everyone, I’m working on a big research project that requires that I download many small files (under 2MB) from the US Security and Exchange Commission’s (SEC) public FTP site. I have the links to all of the files I need, and I’m wondering how I would use a LiveCode “repeat with” loop to

Re: mobileControlDo

2015-04-23 Thread Pierre Sahores
Hi Mark, Many thanks for your helpful guidance ! Understood : mobileControlDo returns the last line of the executed javascript « as this » , so all works as expected with : on mouseup -- mobileControlCreate "browser", "Browser1" inited in the preOpenStack handler -- MobileControlDo

Re: Mixed styles in mobile native field?

2015-04-23 Thread Richard Gaskin
Jacque wrote: > On 4/23/2015 2:01 PM, Richard Gaskin wrote: >> I see that we can set the font, size, color, etc for a mobile field, >> but can we get/set styled text via htmlText or some other means? >> >> If not, anyone know if there's a request for that in the RQCC? >> > > I don't think so, but

Re: Mixed styles in mobile native field?

2015-04-23 Thread J. Landman Gay
On 4/23/2015 2:01 PM, Richard Gaskin wrote: I see that we can set the font, size, color, etc for a mobile field, but can we get/set styled text via htmlText or some other means? If not, anyone know if there's a request for that in the RQCC? I don't think so, but if this is just for display, u

Mixed styles in mobile native field?

2015-04-23 Thread Richard Gaskin
I see that we can set the font, size, color, etc for a mobile field, but can we get/set styled text via htmlText or some other means? If not, anyone know if there's a request for that in the RQCC? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile,

Re: Plain text library stacks

2015-04-23 Thread Thierry Douez
Absolutely, that's what Peter was showing in his sample code. Regards, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 20:56 GMT+02:00 Devin Asay : > I’m curious—can these plain text stacks be

Re: Plain text library stacks

2015-04-23 Thread Devin Asay
I’m curious—can these plain text stacks be used by LC Server just like a regular stack as a library? Devin Devin Asay Office of Digital Humanities Brigham Young University ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this

Re: Plain text library stacks

2015-04-23 Thread Michael Doub
Mark, It appears that when you programmatically create a script only stack and save it. The engine auto inserts the first line: script "stackname".I see that when I look at the file with a text editor. When I edit the script of the stack in livecode the script "stackname" line is missi

POST not blocking

2015-04-23 Thread Dan Friedman
Greetings! If POST is a blocking command (as stated in the docs), how can you get a "Previous Request not completed" error? Is it possible to make a POST command truly blocking to avoid this problem? -Dan ___ use-livecode mailing list use-livecode@li

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Richard Gaskin
Jacque wrote: > On 4/23/2015 12:59 PM, Richard Gaskin wrote: >> Looks like Monte's already submitted a pull request (thanks Monte!), >> so hopefully it won't be much longer. > > Except that he submitted the request 5 months ago. I'm an optimist. :) Unless there's some technical reason this is m

Re: Android Intents/iOS Extensions?

2015-04-23 Thread J. Landman Gay
On 4/23/2015 12:59 PM, Richard Gaskin wrote: Jacque wrote: > Good luck revising the manifest in Android. I am unable to do that, > though Monte says it should work and he submitted a fix for it quite > a while ago. > > Forum thread is here: >

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Richard Gaskin
Jacque wrote: > Good luck revising the manifest in Android. I am unable to do that, > though Monte says it should work and he submitted a fix for it quite > a while ago. > > Forum thread is here: > > > We do need a way to provide our own man

Re: Android Intents/iOS Extensions?

2015-04-23 Thread J. Landman Gay
On 4/23/2015 12:43 PM, Richard Gaskin wrote: However, that tutorial only shows how to have two LC apps pass info to each other, and not how to allow an LC app to receive data from any other app. This seems to be the role of the intents in the Android manifest, and while I haven't yet tried it I'

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Richard Gaskin
Mark Wilcox wrote: > On Thu, Apr 23, 2015, at 03:45 AM, Richard Gaskin wrote: >> 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

Re: Plain text library stacks

2015-04-23 Thread Mark Waddingham
That is something to be aware of. The purpose of a script only stack is to be text on disk... Password protection requires binary output, so in that case you might as well just use a normal stack. Mark Sent from my iPhone > On 23 Apr 2015, at 17:49, Peter Haworth wrote: > > Not sure if this

Re: Plain text library stacks

2015-04-23 Thread Peter Haworth
Not sure if this is a problem or not but it appears that any password I set on the stack isn't retained. If I remove the stack from memory and re-open it, the password isn't retained. I guess just something to be aware of rather than a problem. Pete lcSQL Software Home of

Re: INSERT and SQLlite command"

2015-04-23 Thread Mark Schonewille
I missed that too :-) -- 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 LiveCode: http://qery.us/468 Buy my new book "Programming LiveCode for t

Re: Plain text library stacks

2015-04-23 Thread Thierry Douez
2015-04-23 18:26 GMT+02:00 Mark Waddingham : >> So, script "stackname" must be at the 1st line of the textfile. > > Ah yes - that is indeed the case > Thanks Mark for your explanations. In fact, I started by putting some comments in the first lines then dropped them but leaving one blank line mor

Re: INSERT and SQLlite command"

2015-04-23 Thread Peter Haworth
Also, if id is your primary key, no need to provide a value for it, although that does mean you will have to name the other two fields in the INSERT statement. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin

Re: INSERT and SQLlite command"

2015-04-23 Thread JOHN PATTEN
Gosh darn it! Nevermind… I had the colon in the wrong spots 1: and 2: instead of :1 and :2 etc…. Thanks anyways! > On Apr 23, 2015, at 9:26 AM, JOHN PATTEN wrote: > > Hi All, > > I have a very simple SQL Lite database consisting of three fields, an ID > (INTEGER PRIMARY KEY) and two b

Re: INSERT and SQLlite command"

2015-04-23 Thread Mark Schonewille
Hi John, What is the error you get? Why do you have return in your syntax? Usually, SQLite syntax doesn't contain returns (even though it can). If you want to include a return as part of data, you need to encode or escape it. Additionally, you're combining curly quotes with straight quotes.

Re: Plain text library stacks

2015-04-23 Thread Mark Waddingham
So, script "stackname" must be at the 1st line of the textfile. Ah yes - that is indeed the case - it is quite picky, for two reasons. The first was that the main use-case I had in mind when implementing it was to replace IDE stacks which were only scripts and thus they would be edited in the

INSERT and SQLlite command"

2015-04-23 Thread JOHN PATTEN
Hi All, I have a very simple SQL Lite database consisting of three fields, an ID (INTEGER PRIMARY KEY) and two basic fields (technology char(200) and notes char(200). I am trying to INSERT records into the database. This works: repeat with x=1 to the number of items in tTopics put item

Re: Plain text library stacks

2015-04-23 Thread Thierry Douez
Hmm, had a blank 1st line and script "stackname" as the second one. So, script "stackname" must be at the 1st line of the textfile. And now it works beautifully :) Regards, Thierry 2015-04-23 16:50 GMT+02:00 Mark Waddingham : >> Doesnt' work here with LC 6.7.4 or LC 7.0.4. > > What exactly is

RE: for you Wall Street fans...

2015-04-23 Thread Dave Kilroy
This link (tweeted by @livecode) has audio https://t.co/Isn1mhQnee - "The difference between genius and stupidity is; genius has its limits." - Albert Einstein -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/for-you-Wall-Street-fans-tp4691394p4691401.html Se

Re: Plain text library stacks

2015-04-23 Thread Mark Waddingham
Doesnt' work here with LC 6.7.4 or LC 7.0.4. What exactly isn't working? The feature has actually been in the engine (albeit in nascent form) since around 6.6.4 / 6.6.5 IIRC. I originally hacked it together because of the issues we'd had keeping the core standalone builder stacks for iOS an

Re: Plain text library stacks

2015-04-23 Thread Thierry Douez
Hi Peter, Which version of LC are you using ? Doesnt' work here with LC 6.7.4 or LC 7.0.4. Thanks, Thierry Thierry Douez - http://sunny-tdz.com Maker of sunnYperl - sunnYmidi - sunnYmage 2015-04-23 15:34 GMT+02:00 Peter W A Wood : > Here is a

RE: for you Wall Street fans...

2015-04-23 Thread Ralph DiMola
I had audio. Super Cool +1!! Any time you can main-stream a large group of people it's Super Cool. Giving back is the most rewarding activity in life. Beatles==> "And, in the end The love you take is equal to the love you make." Ralph DiMola IT Director Evergreen Information Services rdim...@eve

Re: for you Wall Street fans...

2015-04-23 Thread Colin Holgate
I didn’t see Kevin there. The openings are archived, though I can’t seem to get the old ones to play. > On Apr 23, 2015, at 9:42 AM, Richard Gaskin > wrote: > > Colin Holgate wrote: > > > The opening bell ceremony is streamed online, here: > > > > http://livestream.com/nasdaq/live

Re: for you Wall Street fans...

2015-04-23 Thread Richard Gaskin
Colin Holgate wrote: > The opening bell ceremony is streamed online, here: > > http://livestream.com/nasdaq/live > > Today’s opening is sponsored by LiveCode. Not certain of the time, > I’ve read both 9:20 and 9:30. It’s 9:10 at the moment. It's on right now.

Re: Plain text library stacks

2015-04-23 Thread Peter W A Wood
Here is a very simple server script and a very simple “text” library script that show just what I was hoping. The Library Script: script "TextLib" function TL.compare pFirst, pSecond return pFirst = pSecond end TL.compare The Server Script: #!

for you Wall Street fans...

2015-04-23 Thread Colin Holgate
The opening bell ceremony is streamed online, here: http://livestream.com/nasdaq/live Today’s opening is sponsored by LiveCode. Not certain of the time, I’ve read both 9:20 and 9:30. It’s 9:10 at the moment. ___ use

Re: Plain text library stacks

2015-04-23 Thread David Bovill
Great. I can now refactor all those libraries. On Thu, 23 Apr 2015 at 11:44, Peter W A Wood wrote: > Many thanks, Mark. > > > On 23 Apr 2015, at 15:59, Mark Waddingham wrote: > > > > On 2015-04-23 07:37, Peter W A Wood wrote: > >> Is it possible to load a Library stack in plan text format from a

Re: Plain text library stacks

2015-04-23 Thread Peter W A Wood
Many thanks, Mark. > On 23 Apr 2015, at 15:59, Mark Waddingham wrote: > > On 2015-04-23 07:37, Peter W A Wood wrote: >> Is it possible to load a Library stack in plan text format from another >> stack? > > Yes - although we've not explicitly published details on the feature yet :) > > However

AW: fastes way to search an array?

2015-04-23 Thread Tiemo Hollmann TB
Mark, thank you for your comments Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Mark Waddingham Gesendet: Donnerstag, 23. April 2015 11:03 An: How to use LiveCode Betreff: Re: fastes way to search an array? > I have an arra

Re: fastes way to search an array?

2015-04-23 Thread Mark Waddingham
I have an array with 2 records, where I want to extract all records, which either "begins with" or "contains" a search string. From your description I presume your array is of the form: tArray[] = tArray[] = ... tArray[] = From this you want to do this: repeat for each key tKey in tAr

Re: fastes way to search an array?

2015-04-23 Thread Mark Waddingham
On 2015-04-23 02:15, Richard Gaskin wrote: In fact, given that SearchArray1 includes the extra overhead of extracting the keys and creating a text list from them, if it were faster I'd call it a bug. I think you may have your SearchArray* functions round the wrong way. SearchArray1 is 'direct

Re: Android Intents/iOS Extensions?

2015-04-23 Thread Mark Wilcox
On Thu, Apr 23, 2015, at 03:45 AM, Richard Gaskin wrote: > 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 t

AW: fastes way to search an array?

2015-04-23 Thread Tiemo Hollmann TB
Thanks Richard and others for you helpful remarks Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Richard Gaskin Gesendet: Mittwoch, 22. April 2015 18:04 An: use-livecode@lists.runrev.com Betreff: Re: fastes way to search an

Re: Fwd: Plain text library stacks

2015-04-23 Thread Mark Waddingham
On 2015-04-23 07:37, Peter W A Wood wrote: Is it possible to load a Library stack in plan text format from another stack? Yes - although we've not explicitly published details on the feature yet :) However, if you want to play around with it then from the message box try: create script on