Re: Nested loops

2022-05-17 Thread Alex Tweedly via use-livecode
Direct equivalent is probably repeat with i = 0 to myArrayLength-1    put i-1 into j    if j < 0 then put myArrayLength-1 into j    . end repeat OR, if you prefer a single-statement version repeat with i = 0 to myArrayLength-1    put (i + myArrayLength-1) mod myArrayLength  into j    .

Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Alex Tweedly via use-livecode
Do you need to be in front of the running machine ? Could you maybe video the machine going through its sequence - then record your voice-over later (either muting or turning down the machine audio, whichever is better) ? (Or, to put it another way, I have no real idea :-) but I'm sure

Re: Flash Talks - 3 slots remaining

2022-04-05 Thread Alex Tweedly via use-livecode
Sounds fascinating - I'd love to hear about that. Alex. On 05/04/2022 18:36, Craig Newman via use-livecode wrote: Heather. I probably am one of the oddest LC users. Entirely for either my own use or for my company. Only once did I sell a system commercially. But I do use LC to control three

Re: CSV to TSV (was Re: Tools & techniques for one-off consolidation of multiple 'similar' CSV files?)

2022-04-05 Thread Alex Tweedly via use-livecode
Hi Keith, that code will fail for any commas which occur within quoted entries - they will be wrongly converted to TABs I'd suggest getting cvsToTab (a community effort by Richard Gaskin, me and a whole host of others over the years) as a good starting place, and perhaps finishing place. It

Re: playrate & templateimage

2022-03-30 Thread Alex Tweedly via use-livecode
On 30/03/2022 22:18, Klaus major-k via use-livecode wrote: At least on a Mac. Is this also the case on Windows? could someone please test it and report here? Thank you! really noone has a minute to test? :-( Oh, I have a minute. Unfortunately, I don't have a 'Windows". Alex. P.S.

Re: Speed up a slow loop

2022-03-09 Thread Alex Tweedly via use-livecode
23:09, Alex Tweedly via use-livecode wrote: Yes, Quentin's allowing for diagonals (that's how the number of digraphs on a 5x5 board gets up to 110). And it's probably a good idea, allowing an even finer filter - if you aren't doing the boardwalk method.. If you do use the boardwalk

Re: Speed up a slow loop

2022-03-09 Thread Alex Tweedly via use-livecode
Yes, Quentin's allowing for diagonals (that's how the number of digraphs on a 5x5 board gets up to 110). And it's probably a good idea, allowing an even finer filter - if you aren't doing the boardwalk method.. If you do use the boardwalk to generate the exact list of words, you get no

Re: Speed up a slow loop

2022-03-08 Thread Alex Tweedly via use-livecode
On 08/03/2022 07:27, Neville Smythe via use-livecode wrote: I believe there were two problems: a) the original search search algorithm was too slow, and b) when implemented on certain devices the app went into an unusable state. Both problems were caused by the wordlist being stored being

Re: Speed up a slow loop

2022-03-07 Thread Alex Tweedly via use-livecode
On 06/03/2022 22:56, J. Landman Gay via use-livecode wrote: The board walk took 179 ms for all 108 words because I ditched my old, juvenile, inefficient code and swiped yours. :) As Bill requested, I've marked all the stuff I used with credits for the people who suggested or provided code,

Re: Speed up a slow loop

2022-03-06 Thread Alex Tweedly via use-livecode
Another thought on this problem; I think worth discussing even if the various suggestions so far have already got you a solution. I think it's a general observation ... You don't really care how long it takes to do this. What you care about is how long the user has to wait for your (the

Re: Speed up a slow loop

2022-03-06 Thread Alex Tweedly via use-livecode
On 06/03/2022 06:35, J. Landman Gay via use-livecode wrote: Combined with Ken's suggestion to use "difference", looking up a list of about 50 words in the filtered dictionary reduces the time from 2-4 seconds to about 40 ms. It varies, depending on a lot of things, but it's fast enough that

Re: Chart widget and axes which are time values.

2022-02-25 Thread Alex Tweedly via use-livecode
for them… I don’t have a problem creating a bug report, it just seemed odd that it absolutely doesn’t work for me.) -- Scott Morrow Elementary Software (Now with 20% less chalk dust!) web https://elementarysoftware.com/ email sc...@elementarysoftware.com booth1-360-734-4701 mobile

Chart widget and axes which are time values.

2022-02-22 Thread Alex Tweedly via use-livecode
I've been trying to use the new chart widget, but no success yet. All the charts I want to do have times (or dates) along the X axis. I can see that any options which have not been wrapped in LC can be set by doing something like:    put the chartJSONOptions of widget "mine" into tA    put

Re: Creating a simple menu

2022-01-08 Thread Alex Tweedly via use-livecode
On 08/01/2022 13:14, Alex Tweedly via use-livecode wrote: I think you mean "[...] menu is not an option in the list of styles in the dictionary". I meant to say "in the list of styles in the drop-down list, although it is in the dictionary" Hope that wasn't co

Re: Creating a simple menu

2022-01-08 Thread Alex Tweedly via use-livecode
caveat - I've never done any of this in real life :-) On 08/01/2022 03:41, David Squance via use-livecode wrote: Hi all, I want to create a mock-up of a web site, so some menus are required. It’s something I’ve done very little with, and the last was years ago. I’m an infrequent LC user,

ANN: BoggleSolver now on sample stacks

2022-01-02 Thread Alex Tweedly via use-livecode
I've put a little 'game' up on "sample stacks", and also on the web. It "solves" Boggle style puzzles, i.e. you give it a 5x5 grid of letters, and it finds all words within it, following the prescribed rules - words are formed by moving to adjacent (including diagonal) grid positions, and you

Re: Sorting cards problem, and a link

2022-01-01 Thread Alex Tweedly via use-livecode
Not sure if I understand it properly, but cards 1 and 2 (i.e. the index and the current choice) do not have a field "title" If I do a **sort card by field "title" ** then the cards come out unsorted (or improperly sorted, not sure). I added a field "title" to each of the first 2

Re: Sorting cards

2022-01-01 Thread Alex Tweedly via use-livecode
I'd be happy to look - but my knowledge is entirely LC - never touched HC, so that may prevent me seeing something relevant. Suggestions (that you may have tried already :-) : 1. loop through the cards: put the short ID of this card & TAB & field "title" ... after myVariable then try

Re: Sorting cards

2021-12-30 Thread Alex Tweedly via use-livecode
On 30/12/2021 19:38, J. Landman Gay via use-livecode wrote: Thanks for the reply. I understand how it works, my question is how to make it not work that way. :) Basically, I don't want the sub-sort. The 'sub-sort' will only have any effect if there are cards with identical values for the

Re: Sorting cards

2021-12-30 Thread Alex Tweedly via use-livecode
You shouldn't need to ignore the previous sort. The second sort over-rides the first; it's only when looking at those cards which have the same value for the second field that the previous sorting applies. So if we have A2 B1 A1 C3 If we sort by char 2 of each, we would get    B1 A1 A2 C3

Re: Infection Simulation

2021-12-29 Thread Alex Tweedly via use-livecode
That's really cool - thanks. Improvements ?   How much time do you have :-) 1. Visual display of contagion zone while running. 2. Recovery. After being infected for some length of time, an individual stops being infectious; either it dies, and becomes a static black dot, or recovers and

Re: Livecode downloads VERY slow

2021-12-22 Thread Alex Tweedly via use-livecode
OK, memory lane time. Before we had 1200 baud modems, we used to use acoustic couplers. I often used one to call from the main office (England) to our US office, at a mind-blowing 300 baud. Problem was, in those days (1978 I think), even voice transatlantic calls were hit or miss. Often you

Re: [ANN] Release 9.6.6 RC-1

2021-12-21 Thread Alex Tweedly via use-livecode
On 21/12/2021 15:27, panagiotis m via use-livecode wrote: Hello Mike, When a runtime error occurs in a context where the script debugger cannot run, the error dialog will be displayed rather than failing silently Before LC 9.6.6 rc1, runtime errors in moveStack and resizeStack were ignored,

Re: How to get a hilitedElement value from a Tree View's arrayData?

2021-12-21 Thread Alex Tweedly via use-livecode
Hmmm - maybe I'm missing something, but Can't you use the feature of "using a numeric-indexed array as key" ? (AFAIK it's an undocumented feature, except in the original release notes for 5.x, which are no longer on the downloads site, and which I can't find my copy of - so if anyone has

Re: Smile for Christmas.

2021-12-16 Thread Alex Tweedly via use-livecode
quot;intotRight["width"] *union*tLeft withtRight *# RESULT** # tLeft["colour"] = "green" # tLeft["align"] = "left"** # tLeft["width"] = "100"* On Dec 16, 2021, at 12:55 PM, Alex Tweedly via use-livecode wrote: Not only do

Smile for Christmas.

2021-12-16 Thread Alex Tweedly via use-livecode
I was just reading the dictionary entry for 'union'. Not only does it combine two arrays, but apparently it also spell-corrects "color" to "colour" !! Alex. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: open socket on start up and can't close

2021-12-15 Thread Alex Tweedly via use-livecode
Could it be remote debugging ? Which version / license are you using ? Alex. On 15/12/2021 19:26, RobEppich via use-livecode wrote: Downloaded and run Livecode 9.6.5, type “put the opensockets” and a socket is open, 65463. Close socket 65463 and put the opensockets again and result is

Re: Ghost in the Machine?

2021-12-12 Thread Alex Tweedly via use-livecode
Peter, I think the piece of info we are all missing (or guessing wrongly about) is: the existing club membership system - is it a web-based system, or an app that runs on your desktop. We're all kind of assuming it's a web page, but I now suspect maybe it isn't. If it is a web page - then

Re: Ghost in the Machine?

2021-12-08 Thread Alex Tweedly via use-livecode
Hi Peter, just checking if I have understood this right. I think you have a website / webpage which allows the user to view / update a single entry (i.e. "manual on-line form with 20+ fields"). If that is the case, I'd consider writing an app to take in the file of rows of details, and

Re: Project browser docs

2021-12-06 Thread Alex Tweedly via use-livecode
an overview of all loaded stacks, its substacks, cards and all objects on that cards. You can now find it under Plugins->revApplicationOveriew. Regards, Matthias Am 06.12.2021 um 13:49 schrieb Alex Tweedly via use-livecode : On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote: I pre

Re: Project browser docs

2021-12-06 Thread Alex Tweedly via use-livecode
On 06/12/2021 04:14, J. Landman Gay via use-livecode wrote: I prefer the horizontal layout in the Application Overview, but i thought I'd give the PB another try now that I'm working on a simpler project. It's too unweildy for multi-stack projects with lots of controls. Sorry, dumb

Re: Control of Text Fields.

2021-11-10 Thread Alex Tweedly via use-livecode
oger On Nov 7, 2021, at 5:51 PM, Alex Tweedly via use-livecode wrote: On 07/11/2021 11:36, Richmond via use-livecode wrote: No hard feelings. See what I have got up to over on the Forums, and https://forums.livecode.com/viewtopic.php?f=7=36444 PLEASE, feel free to pull the thing to bits

Re: Clicking around . . .

2021-11-08 Thread Alex Tweedly via use-livecode
Hi Richmond, I of course agree that shouldn't happen - but I've not been able to reproduce it. I tried : create new stack create field put text into it, then position insertion cursor within that text (ibeam is flashing) use Property Inspector to set locktext to true     (ibeam is no

Re: Control of Text Fields.

2021-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2021 11:36, Richmond via use-livecode wrote: No hard feelings. See what I have got up to over on the Forums, and https://forums.livecode.com/viewtopic.php?f=7=36444 PLEASE, feel free to pull the thing to bits. I don't want to "pull the thing to bits". Like you, I enjoy seeing

Re: Control of Text Fields.

2021-11-07 Thread Alex Tweedly via use-livecode
On 07/11/2021 09:01, Richmond via use-livecode wrote: I did not mean "competing" in the sense of "b*gger you", I meant it in the sense of healthy competition. Yeah, so did I. And if it came across any other way, then I wholeheartedly apologise. Sorry Richmond. Alex.

Re: Control of Text Fields.

2021-11-06 Thread Alex Tweedly via use-livecode
of the selection. Alex. On 5.11.21 23:08, Alex Tweedly via use-livecode wrote: On 05/11/2021 20:18, Roger Guay via use-livecode wrote: Alex, I did not see that and it is not in my mailbox. Would you please send it again? Thanks, Roger Here it is again, below. Or download the sample stac

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
On 05/11/2021 20:18, Roger Guay via use-livecode wrote: Alex, I did not see that and it is not in my mailbox. Would you please send it again? Thanks, Roger Here it is again, below. Or download the sample stack at https://tweedly.org/downloads/calcbuttons.livecode  - not as pretty as

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
r Guay via use-livecode, < use-livecode@lists.runrev.com> wrote: Thanks, Alex. Sorry I didn’t make myself clear. I’m building a calculator stack with forward and back arrow buttons and a Delete button. What's the script for these buttons? Roger On Nov 4, 2021, at 5:53 PM, Alex Twee

Re: Control of Text Fields.

2021-11-05 Thread Alex Tweedly via use-livecode
end if break -- all the other keys !!   default    end switch end mouseup Alex. On 05/11/2021 01:39, Roger Guay via use-livecode wrote: Thanks, Alex. Sorry I didn’t make myself clear. I’m building a calculator stack with forward and back arrow buttons and a Delete butto

Re: Control of Text Fields.

2021-11-04 Thread Alex Tweedly via use-livecode
Hi Roger, I'm not sure I properly understand your question. here's a code snippet the moves the insertion point (in this sample, typing an 'f' moves it forward, 'b' moves it back). (Note this also works if there is some text selected - it moves the insertion to just after the selection, just

Re: Number of items

2021-10-25 Thread Alex Tweedly via use-livecode
One. The three dots are an ellipsis, not a period :-) :-) On 25/10/2021 20:32, J. Landman Gay via use-livecode wrote: On 10/25/21 1:00 PM, Alex Tweedly via use-livecode wrote: On 25/10/2021 17:43, J. Landman Gay via use-livecode wrote: Delimiters signify the end of a unit, like a period

Re: Number of items

2021-10-25 Thread Alex Tweedly via use-livecode
On 25/10/2021 17:43, J. Landman Gay via use-livecode wrote: Delimiters signify the end of a unit, like a period at the end of a sentence. The delimiter basically "belongs" to the string preceeding it. So I wonder how many sentences this reply might contain ... :-) Alex.

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
overlooked resource save for it’s interface. I note that "Log In" and "Sign Up" do not work. Is there any value in those items? Roger On Sep 30, 2021, at 10:05 AM, Alex Tweedly via use-livecode wrote: Hmmm ... not sure why. Easy way : https://www.tweedly.org/Downloads/sa

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
ds absolutely wonderful, Alex, except I can’t find it as you described. Roger On Sep 30, 2021, at 7:27 AM, Alex Tweedly via use-livecode wrote: On 30/09/2021 15:02, Alex Tweedly via use-livecode wrote: On 06/09/2021 15:14, Kevin Miller via use-livecode wrote: Upgrading this could be

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
On 30/09/2021 15:02, Alex Tweedly via use-livecode wrote: On 06/09/2021 15:14, Kevin Miller via use-livecode wrote: Upgrading this could be a very useful project. There is a lot of content in there but it has the issues you list. So I had a look at what could be done just within the IDE

Re: Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-30 Thread Alex Tweedly via use-livecode
er ~ ke...@livecode.com ~ http://www.livecode.com/ LiveCode: Develop Yourself On 06/09/2021, 14:11, "use-livecode on behalf of Alex Tweedly via use-livecode" wrote: In the main thread, I mentioned that I found revOnline (aka "Sample Stacks"), but didn't say ho

Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Alex Tweedly via use-livecode
On 2021-09-08 01:33, Alex Tweedly via use-livecode wrote: But put [1, 2, 3 ] into tVar2 isn't clear to me. If it was in Python it would be a list - but LC doesn't have 'lists'. Is it equivalent to    put true into tVar2[1]    put true into tVar2[2]    put true into tVar2[3

Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-08 Thread Alex Tweedly via use-livecode
On 08/09/2021 22:43, Mark Waddingham via use-livecode wrote: However, if applied to something which is continuous (and perhaps more importantly something humans are not that great at accurately estimating - eg time) it rarely means two exactly... After all when was the last time you said to

Re: LiveCode 10 - what are your thoughts on the new features?

2021-09-07 Thread Alex Tweedly via use-livecode
On 07/09/2021 23:01, Martin Koob via use-livecode wrote: Hi all. There has been lots of discussion on the list and forums about the one part of Kevin’s announcement regarding the changes in licensing but nothing that I see on the other major part of the announcement — the new features coming

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-06 Thread Alex Tweedly via use-livecode
On 06/09/2021 19:07, Lagi Pittas via use-livecode wrote: The biggest error livecode has made all these years is not creating a "working" storefront that doesn't look like it has been totally given up on. Not sure that's the "biggest" - but yes, I agree it looks unloved. Look at the addons

Sample stacks / revOnline [was: Re: Suggestion: Non-Appbuilding Community Edition]

2021-09-06 Thread Alex Tweedly via use-livecode
In the main thread, I mentioned that I found revOnline (aka "Sample Stacks"), but didn't say how or why. Here the answer to that ... It has: - no differentiation between 'libraries' and 'examples' - it has no support for script-only stacks, which is surely the way most libraries will be done

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-06 Thread Alex Tweedly via use-livecode
+1    Yes, speculation is fun, but probably not very useful :-) On 06/09/2021 12:20, Andre Garzia via use-livecode wrote: Let’s take a step back for a second and realise as a community we lack many things that other programming language communities have. We do have a very healthy mailing

Re: Suggestion: Non-Appbuilding Community Edition

2021-09-04 Thread Alex Tweedly via use-livecode
On 04/09/2021 15:36, David Bovill via use-livecode wrote: So the question here is why not do the same here - keep a free-to-develop “trial version” without the compilation framework and tools. I’m curious to the reasoning. The cynic in me would say that the assumption is that there are too

Re: Text encoding: summary of results and times.

2021-09-03 Thread Alex Tweedly via use-livecode
uot;war" sample textfiles, can be downloaded from     https://www.tweedly.org/Downloads/SpellLib.gz if anyone wants to look at it. Alex. On 03/09/2021 13:38, Alex Tweedly via use-livecode wrote: On 03/09/2021 11:07, David V Glasgow via use-livecode wrote: Alex states that put textEnco

Re: Text encoding.

2021-09-03 Thread Alex Tweedly via use-livecode
On 03/09/2021 11:07, David V Glasgow via use-livecode wrote: Alex states that put textEncode(tWHoleText, "UTF8") into tWholeText speeds replace up, but David B says LC internal format is UTF16. Doesn’t the 8 vs 16 difference matter? Or matters less than other encodings? I would regard

Re: Put URL command

2021-09-02 Thread Alex Tweedly via use-livecode
I said : try put URL "binfile:" & sourceURL into URL ("binfile:" & destinationURL) No. Don't. I was wrong. That avoids the error message, but gets the wrong result. It gives you the content of the URL "binfile:" (i.e. empty) plus the value of the variable sourceURL or, if

Re: Text encoding.

2021-09-02 Thread Alex Tweedly via use-livecode
On 02/09/2021 13:01, David Bovill via use-livecode wrote: Thanks for the question Alex, I’m wrestling with the same issues - but so far got no responses from encoding gurus here :) This is my understanding: 1) Yes its recommended to textEncode text that comes from outside into Livecode’s

Re: Put URL command

2021-09-02 Thread Alex Tweedly via use-livecode
try put URL "binfile:" & sourceURL into URL ("binfile:" & destinationURL) or, if you're cautious like me, put URL ("binfile:" & sourceURL) into URL ("binfile:" & destinationURL) Alex On 03/09/2021 00:55, Peter Bogdanoff via use-livecode wrote: put URL "binfile:" &

Re: Text encoding.

2021-09-02 Thread Alex Tweedly via use-livecode
On 02/09/2021 18:34, Mark Waddingham via use-livecode wrote: On 2021-09-02 12:12, Alex Tweedly via use-livecode wrote: Sorry to drag us off the interesting topic of licensing :-) into some Livecode question. I know little or nothing about Unicode, text encodings, etc. - so my question

Text encoding.

2021-09-02 Thread Alex Tweedly via use-livecode
Sorry to drag us off the interesting topic of licensing :-) into some Livecode question. I know little or nothing about Unicode, text encodings, etc. - so my question is indeed naive. I have a text file (War & Peace from Project Gutenberg), about 3.4Mb. The Mac describes it simply as "Plain

Re: LiveCode community edition is gone

2021-09-01 Thread Alex Tweedly via use-livecode
Thanks Curry. You are absolutely right, everything I said was about the starter plan, not the standard plan. With that correction: “I am surprised there is no annual option on the starter (hobbyist) plan”. Thanks, Alex the hobbyist. Sent from my iPhone > On 1 Sep 2021, at 01:55, Curry

Re: LiveCode community edition is gone

2021-08-31 Thread Alex Tweedly via use-livecode
On 31/08/2021 19:28, Kevin Miller via use-livecode wrote: You can only buy one plan time per person. Or if you are an organization, again you all need to be on the same plan. You can't buy two $9.99 platforms - Starter pricing is intended to be just that, to make it easy and accessible to

Re: [ANN] Organize - A daily task manager

2021-08-25 Thread Alex Tweedly via use-livecode
Hi Mark, Looks great. I'm impressed - and inspired to have another try at getting past the hurdles and making an iOS app :-) Any suggestions on how to get started would be welcome. I'm not sure if I should send comments/suggestions directly to you, or to start on the list to encourage

Re: Accumulating text is *VERY* slow in LC9 on Windows

2021-08-25 Thread Alex Tweedly via use-livecode
Crazy idea - totally untried (sorry, I don't have a Win machine)   put 1 into tLineCount   repeat for each line tRow in tWorkTable   put tRow into tNewTable[tLineCount]       add 1 to tLineCount   end repeat   combine tNewTable using CR Alex. On 25/08/2021 18:15, Ben Rubinstein via

Re: Whatever happened to on-rev?

2021-08-19 Thread Alex Tweedly via use-livecode
Well, it's complicated -) For me (Chrome on Mac), I get on-rev.com   : redirects to livecode.com and all works ok www.on-rev.com : gives error page (in French) and Error 403 https://on-rev.com : gives scary "connection is not private", etc. message Alex. On 20/08/2021 00:59, Bob Sneidar via

Re: Most streamlined method to get data

2021-08-01 Thread Alex Tweedly via use-livecode
It looks like all the "thousand dollar+" amounts are quoted - i.e. it's an example of a regular CSV file - ugly but predictable. Did you try the CSVToTab converter ? https://github.com/macMikey/csvToText Alex. On 01/08/2021 20:39, Skip Kimpel via

Re: workaround for cut-off text in native scroller?

2021-06-02 Thread Alex Tweedly via use-livecode
On 02/06/2021 04:18, Mark Wieder via use-livecode wrote: I do ok on resizing routines until it comes to groups. Then I always end up reinventing things: when and where to lock messages, how to get things resized in the right order so as not to undo what I just did... If there are any rules

Re: 3-way slider control

2021-05-26 Thread Alex Tweedly via use-livecode
I'd prefer it like ... On 26/05/2021 18:28, Paul Dupuis via use-livecode wrote: What, like this: on scrollbarDrag pNewPosition   local tToolTip = "CiC only,both CiC and Source,Source only"   set the thumbPosition of me to pNewPosition   set the tooltip of me to "Text style changes will be

Re: Bug, feature, or just something I need to program around?

2021-05-13 Thread Alex Tweedly via use-livecode
On 13/05/2021 20:25, Jim Lambert via use-livecode wrote: In Notes if you are in one note then select a different note and execute Shift-Command-Right Arrow, you will see the same behavior. The insertion point moves to the end of the note without selecting any text. I don't see that. If I

Re: Bug, feature, or just something I need to program around?

2021-05-13 Thread Alex Tweedly via use-livecode
Thanks Jacque. 'autoTab' does indeed give a behaviour the same as I see in Apple's own apps (for single line fields, differs for multi-line fields), so I'll go with that for now. And when I've got this all sorted out, I'll submit the issues as bug reports (3 I think, so far) and report them

Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Alex Tweedly via use-livecode
I don't follow you Jim. Each Note in the Notes app is a multi-line field, and they all behave just the same as multi-line fields in LC (i.e what I think of as "properly" - TABbing into the field positions the cursor with nothing selected, and an immediate cmd-shift-arrow will select all

Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Alex Tweedly via use-livecode
work? If you tab into a field and then cmd-arrow (right or left) I think it restores the “selection” behavior you are looking for ie. you can then shift-cmd-right or left to select the chars. Would that be a work-around? On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode < use-liveco

Re: Bug, feature, or just something I need to program around?

2021-05-12 Thread Alex Tweedly via use-livecode
If you tab into a field and then cmd-arrow (right or left) I think it restores the “selection” behavior you are looking for ie. you can then shift-cmd-right or left to select the chars. Would that be a work-around? On May 11, 2021, at 9:22 PM, Alex Tweedly via use-livecode wrote: In a LC single

Bug, feature, or just something I need to program around?

2021-05-11 Thread Alex Tweedly via use-livecode
In a LC single line field (MacOS), the keys shift-cmd-rightarrow will select from the current position to the end of the line, and add that to the selection. BUT if I TAB into the field the cursor is initially at the start of the field and the key sequence above will move the cursor to the

Re: LiveCode convert seconds to dateItems - year is out by 19?

2021-05-11 Thread Alex Tweedly via use-livecode
I doubt it :-)  As a useless piece of info, it works OK for me. I'd suggest printing out the tCreateDate and "the seconds" so you can compare. Or, put the seconds into tCreateDate and convert it, just to see. Alex. On 11/05/2021 11:44, Keith Clarke via use-livecode wrote: Hi folks, What am

Re: Enhancement request: show the execution contexts in debugger UI

2021-04-20 Thread Alex Tweedly via use-livecode
I will join in to support (as soon as I remember which password gives me access). But I think it would be more useful to have this displayed as a "value" palette - similar to what you get when you double-click a variable - rather than another tabbed pane. Alex. On 20/04/2021 11:46, Andre

Re: On the dangers of automated refactoring

2021-04-14 Thread Alex Tweedly via use-livecode
On 14/04/2021 21:01, Ralph DiMola via use-livecode wrote: Good question... I'm thinking it's the same reason that with strict compilation enabled a variable in a repeat loop does not have to be declared as a script local. If it is declared as a script local no shadow error occurs. A handler

Re: On the dangers of automated refactoring

2021-04-14 Thread Alex Tweedly via use-livecode
On 14/04/2021 10:23, Andre Garzia via use-livecode wrote: That is the main issue, the code was using the wrong hungarian-lite prefixes. You’d see something like on myHandler pDataA … end myHandler But, lo and behold, on top of the script there would be something like local

Re: Find Replace in Script Editor with cr

2021-04-07 Thread Alex Tweedly via use-livecode
On 07/04/2021 16:46, Sean Cole (Pi) via use-livecode wrote: FFS Alex, I HAVE created a plugin! I was JUST trying to ask, can I insert a cr using the replace field of the Find Replace ONLY. And now I have too. And I found that fun and interesting. Thank you for triggering this interesting

Re: Find Replace in Script Editor with cr

2021-04-07 Thread Alex Tweedly via use-livecode
Hi Sean, I'm struggling a bit to understand how you intend to use this. You give an example of *if* field "Level" begins with "Director" and field "UserDisplay" is not empty and field "UserDisplay" is not "All Agents" and the label of button "Status" is "All Sales"*then* *put*

Re: How to get the path to the 'My Livecode' or the plugins folder?

2021-03-29 Thread Alex Tweedly via use-livecode
Not pretty, but if you know you have a particular plugin installed, then you can do put the filename of stack "4wDevo" into tmp and work from there; e.g. I get /Users/alextweedly/Dropbox (Personal)/My Livecode/Plugins/4wDevo.livecode Alex. On 30/03/2021 00:06, matthias rebbe via

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 22:11, Roger Guay via use-livecode wrote: Thanks, Alex. Unfortunately it comes up with the “No Entry” sign on this machine. Roger I'm not exactly sure what message this is, or when it happens. But this sounds like "Fortunately, ..." because I think it means you have an app

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 20:54, Paul Dupuis via use-livecode wrote: On 3/29/2021 3:36 PM, Alex Tweedly via use-livecode wrote: there is some way to allow unsigned apps to run on all current and foreseeable versions of the desktop OSes I think your assumption that you will be able - even via some

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 21:23, Roger Guay via use-livecode wrote: I have to admit I haven’t had a lot of time to experiment yet on my wife’s computer as I've been busy here trying to communicate my problem. Also, my wife’s computer is busy helping her work from home, not to mention, her style is to

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
Roger, this is frustrating, isn't it !! If I were you, I'd send an email to the list saying (something along the lines of ) I want to get to the bottom of this. I'm going to host a Zoom call on my wife's Mac at where I will share my screen so you can all see what I'm doing, and I'll

Re: New(?) Idea for Standalones

2021-03-29 Thread Alex Tweedly via use-livecode
On 29/03/2021 19:20, Craig Newman via use-livecode wrote: Roger. For about eight users in my business I distribute standalones for desktop only, both Mac and Windows versions. These are developed on a Mac. Simple to update and make, simple to give away, simple to use. That is the aspect of

Re: New(?) Idea for Standalones

2021-03-27 Thread Alex Tweedly via use-livecode
On 27/03/2021 02:43, Richard Gaskin via use-livecode wrote: This makes the Community Edition a natural fit for a generic player, since the proliferation the license explicitly encourages would be very much with the grain of its goals. But then we have to ask: how many of those who might

Re: New(?) Idea for Standalones

2021-03-27 Thread Alex Tweedly via use-livecode
On 27/03/2021 18:29, Richard Gaskin via use-livecode wrote: My response to Alex was apparently too long to be read, but I touched on this in third block, re "security", re implications for a player as well: http://lists.runrev.com/pipermail/use-livecode/2021-March/263948.html Not at all "too

Re: New(?) Idea for Standalones

2021-03-26 Thread Alex Tweedly via use-livecode
On 27/03/2021 00:35, Richard Gaskin via use-livecode wrote: What are you looking for?  When were these "good ol days" in which one could run stack files without an engine, and how did that work? I can describe what I would like; that may be similar to what Roger is looking for. Or it may

Re: Does anybody know if the Livecode Global happened yesterday?

2021-03-26 Thread Alex Tweedly via use-livecode
Yes, it happened yesterday (and I enjoyed it, and as always learnt something), and it will again today. I'd email Heather (support@...) - and maybe mark it urgent if you want to get in in the next hour. Alex. On 26/03/2021 14:18, Lagi Pittas via use-livecode wrote: HI All, I purchase both

Re: Array Split vs Combine

2021-03-09 Thread Alex Tweedly via use-livecode
On 09/03/2021 16:56, Sean Cole (Pi) via use-livecode wrote: Hi all, I have a tsv I split out as an array, process, then combine back to a tsv. The tsv is 53MB (55,635,198 bytes) and has 228320 lines with 21 columns (55406878 chars). To load the tsv file : 434ms To split the tsv to array :

Re: sort container parameters

2021-03-02 Thread Alex Tweedly via use-livecode
The number of lines being sorted makes o difference. The number of distinct sorts will - but at a single 'do' for each of "several hundreds", you'll not even notice except (maybe) if you are benchmarking it (around 5ms per 1000 'do's on an elderly MacBook Pro). Alex. On 02/03/2021 22:52,

Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Alex Tweedly via use-livecode
Paul - if you need to do this (i.e. find pairs of rects which are too close) for LARGE numbers of rects, I have some code to do this very efficiently (somewhere in an old archive, just ready to translate from C to LC). It uses a 'trailing window horizontal scan' so reduces the complexity/time

Re: LC Roadmap

2021-02-16 Thread Alex Tweedly via use-livecode
On 15/02/2021 12:55, Andre Garzia via use-livecode wrote: It is with this in mind, that I decided to create content for our community. Books are an easy value proposition. Most of our community is beyond their thirties and have a fondness (and experience) for the written word and

Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-16 Thread Alex Tweedly via use-livecode
Hi Henk, No, it's maybe not obvious but it does take all cases into account. If the smallest distance is between corners of each rectangle - only then does the 'sqrt' have real meaning. In all other cases, one or other of the DX and DY comes out as 0. --  |    | | R1 |  --  |    | 

Re: [OT] Poll: What does it mean for 1 rect to be 'within' a certain distance of another rect?

2021-02-15 Thread Alex Tweedly via use-livecode
On 15/02/2021 23:21, Sean Cole (Pi) via use-livecode wrote: Hi, No point reinventing the wheel.. But most of those links actually did not have this particular wheel, or anything like it. The exception was the last one (programmerssought.com) which had an ugly, inefficient and lengthy (45

Re: Stack check-out/check-in

2021-01-25 Thread Alex Tweedly via use-livecode
which is fine if you are OK doing manual clean-up when, not if, if the stack should ever exit without 'quit'ing, or become disconnected from the network, or ... any of which would leave the file-flag behind. The  easiest alternative is to have the stack update the file periodically, and

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
On 15/01/2021 14:46, matthias rebbe via use-livecode wrote: Alex, for a new project which should include socket communication i have to prototype a short "demo" and i was already wondering if i need to have running 2 instances of the LC IDE for development. But now you wrote that you had

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
e (particularly once I've closed all sockets, I wouldn't expect sockets to interfere with scripts being changed). Regards, Bernard On Fri, Jan 15, 2021 at 12:07 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: I've not seen any such problems - though with 9.6

Re: opened socket in IDE prevents script changes

2021-01-15 Thread Alex Tweedly via use-livecode
I've not seen any such problems - though with 9.6.1 / Mac. I've spent most of the last week in the IDE, with two or more stacks open (one server, one client - occasionally multiple client stacks) so I have multiple open sockets (both 'accept'ing and 'open'ed)  almost all the time, and had no

  1   2   3   4   5   >