Re: Can a stack know which standalone engine it's running on?

2020-04-27 Thread Mark Waddingham via use-livecode
On 2020-04-27 23:08, Devin Asay via use-livecode wrote: But doesn’t the processor just report on the host operating system? I wan’t to know which LiveCode engine is running. No 'the processor' reports what architecture the engine was built for. From the dictionary: Use the processor

Re: Mobile screen sizes - another naive question

2020-04-27 Thread Alex Tweedly via use-livecode
On 27/04/2020 21:29, Richard Gaskin via use-livecode wrote: I've been itching to write a tutorial on using specific object placement ("Responsive Design", as the kids call it) to compliment the Lesson we've had for years on the other mobile layout option, FullScreenMode. I had a few

Re: Dark Mode support and iOS startup screens

2020-04-27 Thread hlowe--- via use-livecode
Thank you Panos. Looking forward to seeing this. Best wishes, Henry Hello Henry, Support for storyboards is coming in the next LC 9.6 RC-1 release. Kind regards, Panos -- On Mon, 27 Apr 2020 at 23:32, HENRY LOWE via use-livecode < use-livecode@lists.runrev.com> wrote: > As of LC 9.6.0

Re: Can a stack know which standalone engine it's running on?

2020-04-27 Thread Devin Asay via use-livecode
But doesn’t the processor just report on the host operating system? I wan’t to know which LiveCode engine is running. Here’s the scenario: I have a LiveCode splash screen-type application for which I’ve compiled both Windows-32 and Windows-64-bit versions. The standalone opens a stack that

Re: Can a stack know which standalone engine it's running on?

2020-04-27 Thread Mark Waddingham via use-livecode
The version almost uniquely identifies every public engine build - the buildNumber always does. The platform together with the processor uniquely identify the target it was built for. Warmest Regards, Mark. Sent from my iPhone > On 27 Apr 2020, at 22:43, Devin Asay via use-livecode >

Can a stack know which standalone engine it's running on?

2020-04-27 Thread Devin Asay via use-livecode
The subject line says it. Is there a way for my stack to know which Windows standalone engine it is running on? For diagnostic purposes I would like to be able to report the current LiveCode standalone engine. I’m probably missing something obvious. Devin Devin Asay Director Office of Digital

Re: Dark Mode support and iOS startup screens

2020-04-27 Thread panagiotis merakos via use-livecode
Hello Henry, Support for storyboards is coming in the next LC 9.6 RC-1 release. Kind regards, Panos -- On Mon, 27 Apr 2020 at 23:32, HENRY LOWE via use-livecode < use-livecode@lists.runrev.com> wrote: > As of LC 9.6.0 (dp4) there is support for detecting whether the system is > in dark or

Dark Mode support and iOS startup screens

2020-04-27 Thread HENRY LOWE via use-livecode
As of LC 9.6.0 (dp4) there is support for detecting whether the system is in dark or light mode and also a message that signals when the display mode changes. This works well and we have successfully added dark mode support to our iOS app. However, there appears to be no support for adding a

Re: Mobile screen sizes - another naive question

2020-04-27 Thread Richard Gaskin via use-livecode
Graham (and Brahmanathaswami may enjoy this too): I've been itching to write a tutorial on using specific object placement ("Responsive Design", as the kids call it) to compliment the Lesson we've had for years on the other mobile layout option, FullScreenMode. I had a few minutes over the

Re: Which git service suits a LiveCoder best?

2020-04-27 Thread Brian Milby via use-livecode
ScriptTracker isn’t necessarily incompatible with Levure, but if using that framework as intended then all of the scripts would be in script only stacks as behaviors which would make it unnecessary. I have thought about setting up a hybrid project as a test but never have gotten around to

RE: Counting unique items in a file

2020-04-27 Thread Ralph DiMola via use-livecode
I would change the first line below and add one line and one parameter(dateTimeColumn). This assumes that the date/time is converted into seconds or milliseconds). add 1 to uNames[item pColumn of l]["Count"] if item dateTimeColumn of l > uNames[item pColumn of l]["DateTime"] then put item

Re: Which git service suits a LiveCoder best?

2020-04-27 Thread Andreas Bergendal via use-livecode
As to the ’how’, I planned to move into script-only stacks more anyway, and will also test the Levure framework, and/or Script Tracker. I’m not sure if those two are compatible though? I mean, if I use Levure framework I can’t (needn’t?) use Script Tracker as well, right? Anyway, with the help

Re: Counting unique items in a file

2020-04-27 Thread Skip Kimpel via use-livecode
All of that works perfectly. Thank you everybody! Let's through a layer of complexity in here... each of of those names has another column with a time associated with it, for instance "13:02:58" I would like to only show the LATEST time associated with that particular name. Premise behind this

Re: Counting unique items in a file

2020-04-27 Thread Skip Kimpel via use-livecode
Silly me... of course. Thank you, Dunbarx for pointing out the obvious :) SKIP On Mon, Apr 27, 2020 at 2:27 PM dunbarx--- via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi. > You are getting empty because the information returned from the function > is an array. > "combine " the

mouseColor randomly returning "0,0,0"

2020-04-27 Thread Richard Gaskin via use-livecode
For years I've relied on the mouseColor to pick up colors for my layouts, but lately I've found something weird: Most of the time it works, but sometimes it return "0,0,0" over things I know aren't black. For example, this morning it's returning that color of a large block of solid light

Re: Counting unique items in a file

2020-04-27 Thread dunbarx--- via use-livecode
Hi. You are getting empty because the information returned from the function is an array. "combine " the array with "return and "comma" Craig -Original Message- From: Skip Kimpel via use-livecode To: Dan Friedman Cc: Skip Kimpel ; How to use LiveCode Sent: Mon, Apr 27, 2020 1:52 pm

Re: Counting unique items in a file

2020-04-27 Thread Skip Kimpel via use-livecode
Thanks Dan! Upon very quick implementation, I am getting empty results back. I think I need to play around with this a little bit more but I feel you got me on the right track. Thanks again, SKIP On Mon, Apr 27, 2020 at 1:34 PM Dan Friedman wrote: > Skip, > > Haven't tested, but pope about

Re: Counting unique items in a file

2020-04-27 Thread Dan Friedman via use-livecode
Skip, Haven't tested, but pope about this... function getUniqueNames inData,pColumn put "" into uNames set the itemDel to tab repeat for each line l in inData add 1 to uNames[item pColumn of l] end repeat return uNames end getUniqueNames You should get back an array keyed by

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread J. Landman Gay via use-livecode
On 4/27/20 1:48 AM, Mark Waddingham via use-livecode wrote: Both mergBgTask and mergNotify provide features to enable managing the background task feature of iOS, and the suspend/resume notifications though. And for Android...what? -- Jacqueline Landman Gay |

Counting unique items in a file

2020-04-27 Thread Skip Kimpel via use-livecode
Good afternoon LC'ers, I am loading a tab delimited file into a variable and I need to pull out all unique names from a certain column (let's say column 10) and count how many times that name appears in that column. I know there has to be an easy way of doing it. Every time I try to start

[ANN] This Week in LiveCode 223

2020-04-27 Thread panagiotis merakos via use-livecode
Hi all, Read about new developments in LiveCode open source and the open source community in today's edition of the "This Week in LiveCode" newsletter! Read issue #223 here: https://bit.ly/2yPFixO This is a weekly newsletter about LiveCode, focussing on what's been going on in and

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread Graham Samuel via use-livecode
Panos, as usual, this is terrific information! I am applying your advice immediately. Not to start an argument, the statistics you quote don’t accord with my personal experience. Almost everyone I know who owns Apple kit has at least one phone or iPad that can’t be upgraded to the latest OS

Re: How do I format a handler in the use-List?

2020-04-27 Thread dunbarx--- via use-livecode
Jacque. Came over just fine. I will try to reset the use-list to my business eMail. Thanks, Craig -Original Message- From: J. Landman Gay via use-livecode To: How to use LiveCode Cc: J. Landman Gay Sent: Mon, Apr 27, 2020 2:34 am Subject: Re: How do I format a handler in the use-List?

Re: Wildcard? replaceText, offset?

2020-04-27 Thread dunbarx--- via use-livecode
You are welcome. Er, my offering IS a one liner. Craig -Original Message- From: Rick Harrison via use-livecode To: How to use LiveCode Cc: Rick Harrison Sent: Mon, Apr 27, 2020 12:20 am Subject: Re: Wildcard? replaceText, offset? Thanks for the suggestions! I was hoping that perhaps

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread panagiotis merakos via use-livecode
Hello Graham, I could not find any *official* source from Apple, as their docs are scattered around and it is not easy to determine always if a document is out of date, but from what I understand iOS apps are running in the background by default since iOS 12+. Given how quickly people are moving

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread Graham Samuel via use-livecode
Panos, thanks for that info. The truth is my particular app has proved such a challenge for me in so many different ways that it may never reach its intended user population - but on the off-chance that I do finish it, then I think I may have to get involved with the Apple App Store, if only to

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread panagiotis merakos via use-livecode
Hello all, Just to add to the discussion that one of Graham's phones runs iOS 10.x, so in this case, if you need your app to continue running in the background, you do need to build it with 9.5.1 and check the "enable background execution" checkbox in the iOS settings. However, you will not be

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread Graham Samuel via use-livecode
Thanks Jacque and Mark - very interesting! Your messages told me stuff I did not know. mergBgTask looks scary and somewhat unsure of itself, but i’ll try. What is happening to me is that the app is suspended and effectively stopped when it goes into the background. From this state it can only

Re: Wildcard? replaceText, offset?

2020-04-27 Thread Thierry Douez via use-livecode
> Le 27 avr. 2020 à 08:37, J. Landman Gay via use-livecode > a écrit : > > On 4/26/20 1:24 PM, Rick Harrison via use-livecode wrote: >> In the middle-end part of the string I have “(x)” where x represents some >> integer. >> it could be (4) or (10) or (5) etc. >> I just want to replace the

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread Mark Waddingham via use-livecode
On 2020-04-27 07:25, J. Landman Gay via use-livecode wrote: On 4/26/20 4:43 PM, Graham Samuel via use-livecode wrote: I notice in the Standalone Settings for iOS in LC 9.5.1, a button ‘Background Execution’. If I click it, I get a warning that I don’t really understand which suggests that LC

Re: Wildcard? replaceText, offset?

2020-04-27 Thread J. Landman Gay via use-livecode
On 4/26/20 1:24 PM, Rick Harrison via use-livecode wrote: In the middle-end part of the string I have “(x)” where x represents some integer. it could be (4) or (10) or (5) etc. I just want to replace the number inside the () with whatever other number I need to. If there is only a single

Re: How do I format a handler in the use-List?

2020-04-27 Thread J. Landman Gay via use-livecode
On 4/26/20 2:20 PM, dunbarx--- via use-livecode wrote: Try as I might, I cannot format a handler example copied from the SE. The result is always run-on, even though I add spaces and returns where appropriate. The text seems readable when I send, but reverts to a run-on string when I read in

Re: How to make a mobile app stay alive in the background?

2020-04-27 Thread J. Landman Gay via use-livecode
On 4/26/20 4:43 PM, Graham Samuel via use-livecode wrote: I notice in the Standalone Settings for iOS in LC 9.5.1, a button ‘Background Execution’. If I click it, I get a warning that I don’t really understand which suggests that LC doesn’t officially support the feature. I’m not even sure if