Re: HTMLtext and selectedChunk

2024-11-07 Thread Alex Tweedly via use-livecode
You would normally do something like put the selectedchunk    -> char 5 to 7 of field 1 put the textstyle of the selectedchunk   --> italic if the specified chunk has mixed textstyle, you get an empty result put the textstyle of char 3 to 5 of field 1   -->.   

Re: Live LiveCode Create demo - join us tomorrow

2024-08-13 Thread Alex Tweedly via use-livecode
On 13/08/2024 11:14, Heather Laine via use-livecode wrote: Thanks Martin. We'll have a think whether we can do a repeat at a different time. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com Rather than an entire repeat, maybe just have a Q&A sess

Re: Lockscreen and progress bar

2024-07-26 Thread Alex Tweedly via use-livecode
Sent from my iPhone > On 26 Jul 2024, at 08:13, jbv via use-livecode > wrote: > > Hello Terry, > > Yes I thought of that. The problem is that "lock screen" hinders > the progress bar to be updated while the loop is running. > I also tried to shortly "break" the lock screen by inserting > un

Re: I seem to have missed something

2024-07-25 Thread Alex Tweedly via use-livecode
On 26/07/2024 00:46, Bob Sneidar via use-livecode wrote: But the primary app I developed IS commercial by their definition. Bob S Commercial ?  I guess so. But I don't see that it fits the criteria for "Internal apps"; that category is for apps that have been developed by a company, paying

Re: Livecode Future

2024-07-24 Thread Alex Tweedly via use-livecode
It’s the one signposted as something like “growing the community”. I too dislike videos, so avoided watching this until Kevin said there was info about lifetime license holders in a video. btw, I am a hobbyist deriving no income from LC, and I think you’re incorrect about there being no place f

Re: How do you update the summer megabundle.

2024-07-16 Thread Alex Tweedly via use-livecode
There you should find a download link to the current version. > Open it in LC and press Install and it will override/update your files. > > Regards, > Matthias > > Von meinem iPad gesendet > >> Am 16.07.2024 um 18:05 schrieb Alex Tweedly via use-livecode >> :

How do you update the summer megabundle.

2024-07-16 Thread Alex Tweedly via use-livecode
I opened a bug report on the PolyList (or Polygrid), and it seems likely it has already been fixed in the latest version of the widget. But I can't remember how to upgrade my bundle (and can't seem to find the instructions ...) Help please. Thanks Alex.

Re: Mosquitto library.

2024-06-12 Thread Alex Tweedly via use-livecode
On 12/06/2024 18:26, Richard Gaskin via use-livecode wrote: Mike Kerner wrote: Richard wrote: Either way, I'd imagine a subscribe client looking to avoid polling is going to depend on a long-lived socket, no? That's part of the point of a websocket. you don't have to keep reopening it, and

Re: Return Total of a Given Repeated Number in a List

2024-05-25 Thread Alex Tweedly via use-livecode
On 25/05/2024 16:13, Mike Kerner via use-livecode wrote: (to alex's question) * quicken date shortcuts quicken has/had these very nifty ways of handling date inputs, to make entry faster. if you enter a numeral, like 26, it means that date of this month. similarly, month/date e.g. 5/25 is 5/25

Re: Return Total of a Given Repeated Number in a List

2024-05-24 Thread Alex Tweedly via use-livecode
On 24/05/2024 13:35, Mike Kerner via use-livecode wrote: i LOVE all of these solutions. chunking is so great. in every language i use, there are two things i always implement: * chunking Yes. * quicken date shortcuts Alex. ___ use-livecod

Re: WebDeployHelper tool - the LC10 web app toolbox

2024-04-05 Thread Alex Tweedly via use-livecode
That's cool !   I really like those 'slide-out' left buttons. Thank you very much for this. Alex. On 05/04/2024 16:38, Andreas Bergendal via use-livecode wrote: And as a follow-up on this, here is also a demo web app created with the help of WebDeployHelper 1.0.1: https://wheninspace.com/We

Re: Revisiting Lock Screen

2024-03-28 Thread Alex Tweedly via use-livecode
Hi Bob, I'm not sure from your description how / when you are seeing the (unexpected) changes happening. Remember that lockscreen is automatically set to false when there is no handler running, so unlerss you have an intensive handler running, you will see these changes. If it's not that -

Re: Tutorial for Livecode Server log in system

2024-03-26 Thread Alex Tweedly via use-livecode
Hi Tim, I guess my first response would be - don't. Specifically, don't store or use passwords. Users have a bad habit of re-using the same passwords, so even if your site has no personal or valuable info about your users, the fact that passwords get re-used means you are storing valuable inf

Re: FindIndex question

2024-03-25 Thread Alex Tweedly via use-livecode
Bob - I think you've mentioned these functions (and posted code, or a pointer to code, for them) before (but I couldn't find it). Any chance you could re-post (or just send to me, or ...) Mike - I couldn't see in the thread *why* you want to use a dg ather than a pg ? Is there a missing capabi

Re: web

2024-02-03 Thread Alex Tweedly via use-livecode
I've not been able to get anything worthwhile to work on web. All the working examples that I've seen (e.g. Andreas's example last week of interaction between browser and LC) , have involved a significant amount of html + JS being written. The default shipping web wrapper is completely under-f

Re: We lost an Angle

2024-01-11 Thread Alex Tweedly via use-livecode
I  am so sorry for your loss.  You are in my prayers tonight. Alex. On 11/01/2024 01:54, Ralph DiMola via use-livecode wrote: Many of you knew Margaret from the conferences. We lost her today. She spent her life as a nurse in the oncology department. She gave her love and empathy to all her pat

Re: tsneterr: (3) URL using bad/illegal format or missing URL

2023-12-17 Thread Alex Tweedly via use-livecode
On 16/12/2023 14:51, Klaus major-k via use-livecode wrote: Hi friends, I am trying to upload a (not so long) urlencoded text list to my server, but get the tsNet error as in the subject. In the form of: ... ## Remove spaces etc. put clean_name(tSetlist) into tDateiname put "whatever" & CR & u

Re: resizeControl wishes...

2023-11-30 Thread Alex Tweedly via use-livecode
On 30/11/2023 16:05, Paul Dupuis via use-livecode wrote: resizeControl is sent "only sent when the user resizes a control by dragging its handles. It is not sent if a handler changes the size of a control by changing its properties (width, height, and so on)." Basically, that dictionary entr

Re: Comparative speed in switching among groups

2023-11-27 Thread Alex Tweedly via use-livecode
On 27/11/2023 00:02, ambassador--- via use-livecode wrote: An excuse to benchmark? Sure, I'll bite. :) :=).  Beat me to it. But boy oh boy was I surprised by the difference. Bottom line, in millisecs for just 5 iterations on an M1 Mac: Groups: 141 Cards: 13619 Wow! I suspect most layou

Re: [OT] The Fall of the British Empire???

2023-11-17 Thread Alex Tweedly via use-livecode
> >> On Nov 17, 2023, at 1:39 PM, >> >> England was #1 until 1916, when guess who took over. >> >> Craig Hmmm I thought it was the UK on the top spot. Alex ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subsc

Re: Me and target of script widgets

2023-10-22 Thread Alex Tweedly via use-livecode
Brutal answer :-) Script widgets aren't ready for release yet. They have (effectivtely) no documentation, no examples, no lessons. Unless you have a desparate need to do it now, I'd suggest waiting until they are somewhere near ready. Alex. On 22/10/2023 10:41, David Bovill via use-livecod

Re: I give up! Mac App Installer Hell

2023-10-06 Thread Alex Tweedly via use-livecode
I'm afraid I can't help - wish I could. But I have to say that "... tried the (out of date) LC Lesions," must be the best auto-correct failure this week. Alex. On 06/10/2023 23:44, Dan Friedman via use-livecode wrote: If you have a very, very, VERY good understanding of creating Mac installe

Re: Sort bug

2023-08-31 Thread Alex Tweedly via use-livecode
On 01/09/2023 00:37, Bob Sneidar via use-livecode wrote: The function is adding the value of two chunks together and returning the result. How does that even compute? Unless the + operator is doing something totally different here… The code said: sort lines tVariable by myVal(each) where

Re: Adding and delete a row of data to the Polygrid

2023-08-28 Thread Alex Tweedly via use-livecode
Sorry, I meant 10.x In 9.x you could do put sColSubtotalArray into tA[1] set the addDataAfter of widget "rwTableview" to tA Alex Sent from my iPhone > On 28 Aug 2023, at 13:33, Paul Dupuis via use-livecode > wrote: > On 8/28/2023 7:28 AM, Alex Tweedly via

Re: Adding and delete a row of data to the Polygrid

2023-08-28 Thread Alex Tweedly via use-livecode
On 27/08/2023 20:43, Paul Dupuis via use-livecode wrote: I ran into an inconsistency with the Polygrid ... I am not sure this is a BUG. It is certainly an inconsistency and changing it would break some current code. On the other hand, the Polygrid is part of the widget set for Xavvi/Livecode C

Re: Behaviors

2023-08-22 Thread Alex Tweedly via use-livecode
Not sure how it works in the IDE - seems a problem because it only presents button in the current stack. So I do it all in preOpen... scripts, doing something like set the behavior of fld "F" of grp tmpName to the long id of button "RichTextFieldBehaviour" of \ card "Behaviours" of st

Re: Group corners

2023-08-21 Thread Alex Tweedly via use-livecode
I see those kind of changes (10.0.0DP5, MacOS), but the border changes from solid black to black/white lines - with those 'splits' you described. Alex. On 21/08/2023 01:50, Dar Scott via use-livecode wrote: On Mac and LiveCode 9.6.9… Make a new stack. Put a few controls on it. Group them. Gi

Re: Sorting Arrays

2023-08-11 Thread Alex Tweedly via use-livecode
On 11/08/2023 23:00, J. Landman Gay via use-livecode wrote: On 8/10/23 2:29 PM, Alex Tweedly via use-livecode wrote: [ ... code from earlier posting ...] I couldn't get this to work until I altered it, but I was using a very simple array. What type of array data did you use? I thin

Re: xavvi - temper your expectations

2023-08-10 Thread Alex Tweedly via use-livecode
I have high expectations of xavvi - mostly because I want the cloud IDE, cloud db, new widgets, ... Oh - and I might just play with the AI, but I have no short-term expectations for that part of it. :-) Alex. On 10/08/2023 20:22, Mike Kerner via use-livecode wrote: i'm using chatgpt and ba

Re: Sorting Arrays

2023-08-10 Thread Alex Tweedly via use-livecode
On 09/08/2023 00:15, Bob Sneidar via use-livecode wrote: Has anyone come across a need to sort a numbered array by the values of the different keys? Here you go. Absolutely I have needed that quite often now. I tend to use sequences (numbered arrays) often - maybe too often. Up until now I

Re: Question re download timeout setting

2023-07-22 Thread Alex Tweedly via use-livecode
the socketError messages. So there may be a bug in there - I'll try to track it down more closely, and if I can get anything reliable, submit a bug report). btw - livekode.com was my first attempt at a  "non-existent host" - and it does exist !! Alex. On Jul 21, 2023,

Re: Question re download timeout setting

2023-07-21 Thread Alex Tweedly via use-livecode
On 22/07/2023 01:02, prothero--- via use-livecode wrote: Folks: Sorry for the trivial question, but.. I have an app on my iphone that I am updating from a several years old app the previously worked on an older version of livecode. It needs to access a mysql database on the internet. It works

Re: What is your best practice for setting a script in a script?

2023-07-15 Thread Alex Tweedly via use-livecode
On 15/07/2023 21:29, Paul Dupuis via use-livecode wrote: All good suggestions so far, but not what I was after, which was whether there is any better way to have the script you are setting the newly created object to, readable, in the script that setup of the new object. If a behavior script i

Re: Convert date

2023-07-15 Thread Alex Tweedly via use-livecode
On 14/07/2023 19:45, Bob Sneidar via use-livecode wrote: Because I’m not that good with regular expressions and the format function. :-) But you example has one too many close parens. Oops - I got caught out copying / pasting again :-( Yes, of course it should have been put format("%s-%02d

Re: Convert date

2023-07-15 Thread Alex Tweedly via use-livecode
On 14/07/2023 16:13, Bob Sneidar via use-livecode wrote: I beg to differ. Again, Livecode is a way to build both the tools and the product made by those tools. Livecode is NOT a collection of every conceivable tool for everything everyone wants to do. No language is. I think the LC dev team

Re: Convert date

2023-07-14 Thread Alex Tweedly via use-livecode
On 14/07/2023 16:34, Bob Sneidar via use-livecode wrote: CASE "sql date" put item 1 of theDate & "-" & \ format("%02d",item 2 of theDate) & "-" & \ format("%02d",item 3 of theDate) into theDate break Why not just put format("%s-%02d-%02d",

Re: How to loop through stacks with same name?

2023-04-06 Thread Alex Tweedly via use-livecode
Jacque, those two code snippets do slightly different things - and I don't think either of them is doing exactly what's intended; I think the intent is to delete stack(s) called (exactly) "test". The first one will (wrongly) catch a stack called "testabc" or "abctest" - and then will fail on

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Alex Tweedly via use-livecode
S.  quickest 'reverse' function ? Might be put the number of chars in tText into K put K into N repeat for each char c in tText    put c into tRev[N]    subtract 1 from N end repeat combine tRev with empty Alex. On 23/03/2023 19:03, Alex Tweedly via use-livecode wrote: OK, I may b

Re: Is it possible to use a reverse direction for offset

2023-03-23 Thread Alex Tweedly via use-livecode
OK, I may be going in the wrong direction here, but put (the opening string) into temp set the itemDelimeter to temp put the number of chars in item 1 to -2 of theWholeText into theAnswer ?? Alex. On 23/03/2023 17:24, François via use-livecode wrote: Yes, this is the big picture. Plus,

Re: Chat and textarea formatting

2023-02-16 Thread Alex Tweedly via use-livecode
Of course, the other option - depending on your timescale (and maybe your license) - would be to build it as a LC app, and then 'build for web'. That way you'd have control over the formatting options you want to allow/provide. Alex P.S. but then, I'm strongly averse to any use of JS, HTML,

Re: Chat and textarea formatting

2023-02-14 Thread Alex Tweedly via use-livecode
It's not really a LC question, it's an HTML thing :-) textarea etc. only handle plain (unformatted) text. Googling for suggestions I can only find two common answers: 1. horribly complicated ways to add Javascript to your script to handle formatting 2. "use TinyMCE" I'd go for the second al

Re: Html mix with livecode server

2023-02-11 Thread Alex Tweedly via use-livecode
Short answer you can use single quotes and double quotes interchangeably in HTML (so long as consistently). So you can do Second answer: Or, you could mix html + lc, and do Third answer: Or, for anything more complex like a full website, you might want to look at Ralf Bitter's exce

Re: [[ ANN ]] New Enhancements Bundle v1.0.29 available

2023-02-10 Thread Alex Tweedly via use-livecode
Hi Panos, I just installed the new Megabundle. When I opened up 'magic palette', I got an error dialog There was an error executing a script in stack magic palette. No more information is available because the stack is password protected. Any suggestions how I can get you a helpful error rep

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
kets as fully overlapping to avoid missing close pairs. 5. The size of the grid buckets is critical: too big and you do too much work. Too small and you end up with all singletons in the buckets. This would require some experimentation and thought. 6. Go through the buckets only comparing the points

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
of each Sorry, Alex. On 20/01/2023 13:05, Alex Tweedly via use-livecode wrote: Fascinating. Thank you so much for that Geoff. I've been afraid to play with ChatGPT so far - too worried abut getting sucked in and spending way too much time I did take a look at your third example

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
On 20/01/2023 16:52, Mark Waddingham via use-livecode wrote: On 2023-01-20 13:05, Alex Tweedly via use-livecode wrote: We need a better algorithm. If we use a "linear scan", we can change it from essentially Order(N**2) to approx Order(N). Slightly pedantic point (I appreciate th

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
On 20/01/2023 15:55, Geoff Canyon via use-livecode wrote: Responses inline: On Fri, Jan 20, 2023 at 5:06 AM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: I thought of this -- especially since ChatGPT's first (python-esque) example uses "inf" -- b

Re: ChatGPT examples

2023-01-20 Thread Alex Tweedly via use-livecode
Fascinating. Thank you so much for that Geoff. I've been afraid to play with ChatGPT so far - too worried abut getting sucked in and spending way too much time I did take a look at your third example (since I can never resist a performance challenge :-) There are a number of minor twea

Re: Move in Reverse

2023-01-17 Thread Alex Tweedly via use-livecode
He's moving the graphic object "to" the points of a polygon - i.e. to each in turn. So the movement would be reversed. On 17/01/2023 23:23, Mark Wieder via use-livecode wrote: On 1/17/23 12:06, Roger Guay via use-livecode wrote: Hi all, is there a simple way to move a grc to the points of a

Re: Field content as parametres in a function

2022-11-29 Thread Alex Tweedly via use-livecode
Yes, your description is correct (except for saying the behavior is "puzzling" :-) The first case you are passing a single parameter (which happens to have commas in its current content). You could have said " paramcount() returns 1 as expected". The second case you pass 5 values. And

Re: IP address and Country

2022-11-15 Thread Alex Tweedly via use-livecode
Hi Rick, I had missed the fact that you said you already had the database - that makes it a much easier problem :-) While I don't have any Livecode code for this, I do have some C code for a (probably) very similar problem. If you can describe the format of your database, and the query you

Re: itemoffset & wholematches

2022-11-15 Thread Alex Tweedly via use-livecode
I also need to count how many items I have added and substract that number from the result, which is quite cumbersome and slow... To Jacqueline : Thanks fro the suggestion, but I have to stick with items and itemoffset, for some items can contain more that 1 word, like "pied de biche"...

Re: itemoffset & wholematches

2022-11-14 Thread Alex Tweedly via use-livecode
That would deal with the last item in a line - but not the first. Should do    replace CR with TAB & CR & TAB in ... and reverse later if needed. Alex. On 14/11/2022 18:43, Bob Sneidar via use-livecode wrote: oic. Odd use case. I suppose a lineOffset function followed by is among the items

Re: clearing a polygrid/polylist

2022-10-12 Thread Alex Tweedly via use-livecode
For polygrid    set the pgdata of widget 1 to empty For polylist   set the datacontent of widget 2 to empty BUT beware - on my trivial test, this appears to cause the last character of the header to be removed !! I'll investigate some more and bug report it if it seems consistent. Alex O

Re: Quick and simple web demos?

2022-09-30 Thread Alex Tweedly via use-livecode
Short answers: 1. Yes 2. Yes, but probably not. 3. Yes. Long answers. 1. Yes, absolutely, it's ideal for quick, easy-to-distribute apps or demo samples. 2. Yes, you'll need somewhere to store/give access to the files. But it probably won't be Google Drive - you want the files of the app t

Re: Charts widget.

2022-09-26 Thread Alex Tweedly via use-livecode
versions? Thank you for directing me to 10. On 9/26/2022 5:11 PM, Mike Kerner via use-livecode wrote: well, i learned something new. i don't even see that widget in 9, but i do in 10. On Mon, Sep 26, 2022 at 4:54 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wro

Re: Charts widget.

2022-09-26 Thread Alex Tweedly via use-livecode
to get you started, the graph.lcb file is in Tools/Extensions/com.livecode.widget.linegraph, if you want to try reading through it. it's only 1300 lines, total, including the docs. there is not that much going on. there are no private properties that i can see. On Sun, Sep 25, 2022 at 4:55 P

Charts widget.

2022-09-25 Thread Alex Tweedly via use-livecode
Anyone using this widget ? Is there some documentation (other than the obvious dictionary entries) about how to do different kinds of chart ? In the last 4-6 months, I've done 3 or 4 little personal projects where I wanted to create a chart, but I've not been able to figure out how to use th

Re: NAVRAD was: lcb missing manual

2022-09-17 Thread Alex Tweedly via use-livecode
On 17/09/2022 08:54, Jacques Clavel via use-livecode wrote: point 6. maybe potential for future performance gains : - But today LCB is surprisingly less efficient (/3) than LCS (???) Yes, at first glance it is surprising; typed variables etc. *should* make it possible to be more efficient. An

Re: NAVRAD was: lcb missing manual

2022-09-16 Thread Alex Tweedly via use-livecode
On 15/09/2022 16:37, Ralph DiMola via use-livecode wrote: Docs aside... I still think that widgets and lcb is one of best additions to LC. Community collaboration like this will make for better documentation and more new/improved widgets. A robust library of widgets can only help LC to penetrat

Re: NAVRAD was: lcb missing manual

2022-09-16 Thread Alex Tweedly via use-livecode
le copyright creation date is valid for the life of the creator plus (in the US) 75 years. Oh well. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On September 15, 2022 5:12:59 PM Alex Tweedly via use-livecode wrote: On 15/09/2022 15

Re: NAVRAD was: lcb missing manual

2022-09-15 Thread Alex Tweedly via use-livecode
On 15/09/2022 15:44, Mike Kerner via use-livecode wrote: What's NavRAD? It's a better version of LiveCode's NavBar widget. Why "RAD"? Cos Ralph A DiMola said so, since he added the first two nifty updates to it: I see the code has an outdated copyright statement, which would (I think) current

Re: Standardize Font Appearance

2022-09-13 Thread Alex Tweedly via use-livecode
On 13/09/2022 03:51, Richard Gaskin via use-livecode wrote: So help me understand: what are you working on where a user expects fine-grained font rendering consistency on multiple OSes? What do these apps do? One example that (almost) applied for me was where the target display is not an O

Re: LC converts phone number to scientific notation

2022-09-09 Thread Alex Tweedly via use-livecode
No, not all are 2-digits.   USA is one digit, many are 3 digits, none are (yet) 4 digits. A phone number would have a leading zero in many countries; usually indicating it's a non-local number (kind of similar to the leading 1- in long distance in the US, e.g. 1-800-555-1212). In the UK, numbe

Re: LC converts phone number to scientific notation

2022-09-09 Thread Alex Tweedly via use-livecode
No, I just need to learn to not type emails on my iPhone :-) I do it so rarely, I forget to be careful about autocorrect. On 09/09/2022 16:39, Bob Sneidar via use-livecode wrote: Someone needs to debug their emails. ;-) Bob S On Sep 9, 2022, at 06:32 , Klaus major-k via use-livecode mailto:

Re: LC converts phone number to scientific notation

2022-09-09 Thread Alex Tweedly via use-livecode
How about Put (“” & item 9 of globe) onto item 6 of tnewline Alex Sent from my iPhone > On 9 Sep 2022, at 11:40, Klaus major-k via use-livecode > wrote: > > Hi Panos, > >> Am 09.09.2022 um 12:27 schrieb panagiotis m via use-livecode >> : >> >> Hello Klaus, >> >> I guess what happens he

Re: BN Guides

2022-08-25 Thread Alex Tweedly via use-livecode
Bob, Just email Heather- she can do everything ! Probably the support @ livecode.com address would be more correct than her directly. Alex Sent from my iPhone > On 25 Aug 2022, at 17:18, Bob Sneidar via use-livecode > wrote: > > I found the link to the Board Administrator. The board admin

Re: case sensitivity of the keys in an associative array

2022-08-23 Thread Alex Tweedly via use-livecode
Not quite. It is dependent on the value of "casesensitive". If you do set the casesensitve to true then the keys are different (i.e. Ddt  would NOT replace the existing value for ddt) but if it is false (which it would be by default) thne DDt and ddt are teh same. [Only tested on 10.0.0

Re: Livecode performance problem

2022-08-20 Thread Alex Tweedly via use-livecode
I can't answer for anyone else, but for me - because I never thought about it :-) Combine by column - never used it before, so never thought of it. It's significantly faster, roughly 40% improvement over the previous best. Note, the spec requires that each line begins with the line number, so

The use-livecode list.

2022-08-19 Thread Alex Tweedly via use-livecode
I've had a pretty shitty day. A variety of things have happened, or not happened, that made it not one of the good days. So I was not happy, and rather grumpy. (My apologies to Panos for being ungracious in an earlier post - it was meant to be a plea for completeness of the product in preferen

Re: Livecode performance problem

2022-08-19 Thread Alex Tweedly via use-livecode
On 20/08/2022 00:03, Bob Sneidar via use-livecode wrote: It's probably a lot of text. The engine has to start from the beginning of every string then scan through for every cr or lf or cr/lf or whatever counts as a line break, until if finds the nth one. The more lines, the longer the scan t

Re: Livecode performance problem

2022-08-19 Thread Alex Tweedly via use-livecode
On 19/08/2022 23:32, Mark Wieder via use-livecode wrote: It is indeed faster. Here's what I came up with. I'm not sure why 2000 lines of text in four fields should take that long, I came up with original code: 320 ms array version: 21 ms    put empty into vCombined    put fld "A" into v1   

Polylist widget Lazy Loading images example. [was Re: polylist toys]

2022-08-18 Thread Alex Tweedly via use-livecode
On 18/08/2022 23:13, Alex Tweedly via use-livecode wrote: However, the lazy load example still contains bugs due to race conditions Solution: replace the card script with the following should fix all the race conditions I can see. local sURLToIndex on onlineImage pIndex, pURL

Re: polylist toys

2022-08-18 Thread Alex Tweedly via use-livecode
On 18/08/2022 17:34, Steven Crighton via use-livecode wrote: Hi Mike, I just tested the lazy load example and hit populate and clicked around etc and could not trigger an error. As already confirmed, that problem is fixed in 10. However, the lazy load example still contains bugs due to rac

Sorting [was: Polygrid sorting]

2022-08-15 Thread Alex Tweedly via use-livecode
So it occurred to me, while playing with sorting by columns, that it might be nice to have an additional "sortType" available. I'd like to be able to say  - if all the 'things' being sorted on are numbers, then sort numeric, otherwise sort alphabetical. Would that be a reasonable enhancement

Re: Polygrid sorting (problems)

2022-08-15 Thread Alex Tweedly via use-livecode
On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text

Re: A web app launcher with responsive design

2022-08-13 Thread Alex Tweedly via use-livecode
On 13/08/2022 20:24, Andreas Bergendal via use-livecode wrote: Friends, I have done wonderful things with LC10 web deployment! I’m excited to share with you the fruits of this week's extensive research and testing! Wow. Thanks Andreas. Resize, etc. work well for me on Safari, but fail badly

Re: Server globals

2022-08-12 Thread Alex Tweedly via use-livecode
Hi Tim, I think there are many easy ways to do this - and many not-so-easy ones too. IMO, easiest for something simple like this is to just use the url. See tweedly.net/page_by_url.txt for the code, or try it out at tweedly.net/page_by_url.lc (or try tweedly.net/page_by_url.lc?row=14 ) You

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Alex Tweedly via use-livecode
You are correct Andreas - all this basic javascript interaction *really* should be in the default built already. A sample stack for building a web app was discussed in a session in the LC Global conference, by Steven Crichton and Michael McReary. It has all kinds of javascript magic, and the c

Re: megabundle thoughts

2022-08-05 Thread Alex Tweedly via use-livecode
I kind of agree with Paul (though I ame to the opposite conclusion). Once I discounted the items I'd already paid for (conferences, courses, books, etc.) and the multi-year future licensing already paid, the value of the megabundle shrank from "amazing" to "pretty good". I decided to go ahead

Re: deleting folders on server with revDeleteFolder

2022-07-17 Thread Alex Tweedly via use-livecode
Those folders are "." - the folder itself ".." - the parent of the folder itself. As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else. So - there isn't rea

Re: Encrypted Data over Sockets

2022-07-08 Thread Alex Tweedly via use-livecode
But, an encoded array is STILL binary data. So any issues with "read until linefeed" will still exist. Try sending a header with number of bytes, followed by the bytes. If you really wanted, you could do:    write  (the number of bytes in tSocketData) & linefeed to socket tSocket    write tSoc

Re: arrayencode

2022-06-23 Thread Alex Tweedly via use-livecode
On 23/06/2022 17:48, Ralf Bitter via use-livecode wrote: Hi Alex, have you added the mergJSON External to your server installation? No. In fact, I didn't realize I needed to, or even could :-) You guessed it, use "load extension", example (tested on on-rev): load extension from file "/home

Re: How to color a "cell"?

2022-06-23 Thread Alex Tweedly via use-livecode
On 23/06/2022 19:28, Richard Gaskin via use-livecode wrote: Thanks. I could get away with setting the backgroundColor of the whole line, but that does the same as setting the backgroundColor of a "cell": it draws the color only beneath the portion of the line that contains text, leaving the

Re: arrayencode

2022-06-23 Thread Alex Tweedly via use-livecode
d web provider ?  (on-rev) Thanks, Alex Ralf On 23.06.22 01:31, Alex Tweedly via use-livecode wrote: On 22/06/2022 17:02, Richard Gaskin via use-livecode wrote: [ ... about using JSON ... ] But if you don't need interoperability, you wouldn't need to write a parser, since LC

Re: arrayencode

2022-06-22 Thread Alex Tweedly via use-livecode
On 23/06/2022 00:38, Richard Gaskin via use-livecode wrote: Interesting take. Thanks. I'd read Tom's post as being about LSON, with LC in both producer and consumer roles, which would make a JavaScript-optimized format unnecessary.  Perhaps I'd misunderstood. No, you didn't misunderstand. I

Re: arrayencode

2022-06-22 Thread Alex Tweedly via use-livecode
On 22/06/2022 17:02, Richard Gaskin via use-livecode wrote: [ ... about using JSON ... ] But if you don't need interoperability, you wouldn't need to write a parser, since LC includes a good one built into the engine. What did I miss? The fact that Livecode's support for JSON is, hmmm, med

Re: Stylistic question.

2022-06-19 Thread Alex Tweedly via use-livecode
use behaviors so you could manage your code with a repository like Git. This would greatly reduce the number of behavior scripts that you would create. One app that work on has the code in the stack’s behavior script. Sent from my iPhone On Jun 19, 2022, at 4:33 PM, Alex Tweedly via use-

Stylistic question.

2022-06-19 Thread Alex Tweedly via use-livecode
I've noticed that in a lot of the example code I've seen recently, there's a bit of a common pattern. In the card script, there will be code like on mouseUp   switch the short name of the target     case "first"     doCommandFirst     break     case "another"     doCommandAnother   

Re: Case sensitivity in Livecode ??

2022-06-07 Thread Alex Tweedly via use-livecode
{ Aside: any discussion where both Mark Weider and Mark Waddingham take part is all the better because of that; two very knowledgeable people with two very different viewpoints (in some areas) is a good thing. BUT it makes it hard to refer to what each of them said - "MarkW" is still ambiguous.

Re: Property Sheet for LC (was Re: Right click in field for menu)

2022-06-05 Thread Alex Tweedly via use-livecode
I'll add my thanks for such a usefull tool. On 04/06/2022 19:38, Richard Gaskin via use-livecode wrote: Thanks for the report. Please keep me posted if you find any other anomalies. I don't know if it's an anomaly or another failing in widget support :-) The NavBar widget has a number of p

Re: Case sensitivity in Livecode ??

2022-06-01 Thread Alex Tweedly via use-livecode
On 01/06/2022 18:05, Mark Waddingham via use-livecode wrote: Anyway, this rather odd and obscure facet of the language will disappear in 10 as we've made it so that initializers for constants and locals can be constant expressions. Thus:     constant kTrue = TRUE     local sEmptyString = em

Case sensitivity in Livecode ??

2022-06-01 Thread Alex Tweedly via use-livecode
I was surprised to find that    constant K = TRUE produces an error, though   constant K = true is fine. In other contexts, you can say    put TRUE into myVar    put true into hisVar    etc. but in a constant statement, it seems to be case sensitive. Anyone got an interesting story (or theo

Re: A test, move along

2022-05-27 Thread Alex Tweedly via use-livecode
On 28/05/2022 00:28, Mark Wieder via use-livecode wrote: On 5/27/22 16:03, doc hawk via use-livecode wrote: As a professor, I’ll grade it a B-. I thought that was a pessimistic blood type. I thought it was short for balderdash! ___ use-livecode

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 Heathe

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. Actual

Re: Speed up a slow loop

2022-03-09 Thread Alex Tweedly via use-livecode
09/03/2022 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..

  1   2   3   4   5   6   7   8   9   10   >