Re: Survey: Would you buy one or more widgets from the PRO PACK separately?

2024-06-14 Thread Paul Dupuis via use-livecode
Of those listed, I would pay for (if I needed to, but I have the full LC that includes extensions) the PDF Viewer and, possibly, tsNet PRO I do not develop for mobile, so mobile widgets are not of any immediate interest. On 6/14/2024 2:19 PM, Klaus major-k via use-livecode wrote: Hi

Survey: Would you buy one or more widgets from the PRO PACK separately?

2024-06-14 Thread Klaus major-k via use-livecode
Hi friends, Livecode is selling most of their widgets separately, however not the ones from the PRO PACK: Mobile Debugger Script Profiler tsNet PRO mergAccessory PDF Viewer But unfortunately the PRO PACK is quite expensive: 328.90 Euro PLUS VAT! I am sure most of you do not need all the

Re: Pop Combo Menu

2024-06-13 Thread Craig Newman via use-livecode
"I was hoping I could do it without a click.” Why? That works like a charm, and does not even make the slightest sound. Craig > On Jun 12, 2024, at 4:23 PM, Bob Sneidar via use-livecode > wrote: > > I was hoping I could do it without a click.

Re: Different borders for a group

2024-06-13 Thread Craig Newman via use-livecode
Hi. The borderWidth is a property of the entire border. You will have to add your own one by one. Hey, at least that allows you to change colors and other things as well. Craig > On Jun 13, 2024, at 4:28 AM, jbv via use-livecode > wrote: > > Hi list, > > Is there a way to have different

Different borders for a group

2024-06-13 Thread jbv via use-livecode
Hi list, Is there a way to have different border widths and colors for the top and the bottom of a group ? Or should I include graphic lines inside the group ? Thank you in advance. jbv ___ use-livecode mailing list use-livecode@lists.runrev.com

Re: Mosquitto library.

2024-06-12 Thread Tom Glod via use-livecode
I was just viewitng the "livecode" tag on github. and saw this library. https://github.com/trevordevore/lc-mosquitto Trevor is prolific. Big respect. On Wed, Jun 12, 2024 at 7:33 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > > On 12/06/2024 18:26, Richard Gaskin

iPad Keyboard and rawKeyDown

2024-06-12 Thread scott--- via use-livecode
I’m new to using a physical keyboard with an iPad and haven’t ever done any testing to see if it worked in LiveCode. My recent experience using the new “Magic Keyboard for iPad Pro" is that rawKeyDown (and rawKeyUp) messages are not being handled by LiveCode. Is this a general failing of

Re: Apple developer application and installer certificates

2024-06-12 Thread Mike Kerner via use-livecode
for anyone else dropping into this thread, custom apps have to be rebuilt with a new cert, once per year. it's not a big deal, it's just something that has to be done. it takes a few minutes, max. On Wed, Jun 12, 2024 at 6:11 PM matthias rebbe via use-livecode < use-livecode@lists.runrev.com>

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: Apple developer application and installer certificates

2024-06-12 Thread matthias rebbe via use-livecode
Hello Tariel, renewing is very easy and takes only minutes. If you want, I can guide you through this process. Just contact me off-list. Regards, Matthias > Am 12.06.2024 um 17:07 schrieb Tariel Gogoberidze via use-livecode > : > > Hello, > > I received message from apple that > > -- >

Re: Date Words

2024-06-12 Thread Mark Smith via use-livecode
Hi Bob, I love the concept in principle but that’s a lot of code (to write and debug) and it does’t cover every possible permutation and combination of date requests. I long for a time when we can just capture a string like “a week from next Friday” and then call… function string2gptDate

Re: Pop Combo Menu

2024-06-12 Thread Bob Sneidar via use-livecode
BUUUTTT… It looks like that detaches the menu from the button so any subsequent click on the actual menu button displays the button as a popup menu. Bob S > On Jun 12, 2024, at 1:25 PM, Bob Sneidar wrote: > > Hmmm looks like I can use popup button and provide a location. > > Bob S > >

Re: Pop Combo Menu

2024-06-12 Thread Bob Sneidar via use-livecode
Hmmm looks like I can use popup button and provide a location. Bob S > On Jun 12, 2024, at 1:23 PM, Bob Sneidar via use-livecode > wrote: > > Thanks I was hoping I could do it without a click. Something like pop menu > . There is a popup menu command but I think that only works with >

Re: Pop Combo Menu

2024-06-12 Thread Bob Sneidar via use-livecode
Thanks I was hoping I could do it without a click. Something like pop menu . There is a popup menu command but I think that only works with popup menus. Bob S > On Jun 12, 2024, at 1:01 PM, Paul Dupuis via use-livecode > wrote: > > On 6/12/2024 3:01 PM, Paul Dupuis via use-livecode wrote:

Re: Pop Combo Menu

2024-06-12 Thread Paul Dupuis via use-livecode
On 6/12/2024 3:01 PM, Paul Dupuis via use-livecode wrote: *click*at(rightofbtn1- 5,topofbtn1+ 5) Sorry that line of code is: (paste of formatted text messed it up) click at (right of btn 1 - 5,top of btn 1 + 5) ___ use-livecode mailing list

Re: Pop Combo Menu

2024-06-12 Thread Paul Dupuis via use-livecode
On 6/12/2024 2:20 PM, Bob Sneidar via use-livecode wrote: Hi all. I have a Combo Menu button. I want to have it “pop” open and show the options via script, but I cannot find a command to do that. Bob S ___ use-livecode mailing list

Re: Mosquitto library.

2024-06-12 Thread Mike Kerner via use-livecode
the original question was about mosquitto and handling messaging, thus the remarks about websockets. bob: the server just opens the port and listens. there is no timeout on the server. the client sends the request, and then times out if it does not receive a reply. whether it receives a reply or

Pop Combo Menu

2024-06-12 Thread Bob Sneidar via use-livecode
Hi all. I have a Combo Menu button. I want to have it “pop” open and show the options via script, but I cannot find a command to do that. Bob S ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe,

Re: Mosquitto library.

2024-06-12 Thread Bob Sneidar via use-livecode
Hi Richard. This email thread now has me curious. If I have an app that starts listening on a port, does that server port have a timeout associated with it that needs refreshing, or does the timeout only exist when a client connects? I have always assumed the latter. Bob S > On Jun 12,

Re: Mosquitto library.

2024-06-12 Thread Richard Gaskin via use-livecode
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 both ends can use it, as needed. Exactly,

Date Words

2024-06-12 Thread Bob Sneidar via use-livecode
Hi all. Did you ever want to use phrases like yesterday, last tuesday or next friday in a date field? function dateWords pDate if word 1 of pDate is not among the items of "last,next,yesterday,today,tomorrow" then \ return empty put date() into tCurrentDate convert

Apple developer application and installer certificates

2024-06-12 Thread Tariel Gogoberidze via use-livecode
Hello, I received message from apple that -- Your Developer ID Installer Certificate will no longer be valid in 30 days. To generate a new certificate, sign in and visit Certificates, Identifiers & Profiles. And Your Developer ID Application Certificate will no longer be valid in 30 days.

Re: Mosquitto library.

2024-06-11 Thread Mike Kerner via use-livecode
>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 both ends can use it, as needed. On Mon, Jun 10, 2024 at 11:38 AM Bob Sneidar via use-livecode <

Re: Mosquitto library.

2024-06-10 Thread Bob Sneidar via use-livecode
No, and Yes. ;-) Bob S On Jun 8, 2024, at 6:11 PM, Richard Gaskin via use-livecode wrote: * if we get websockets working, that will be another way to make this work. Do we need websockets on this? XMPP, for example, runs over regular sockets. Either way, I'd imagine a subscribe client

Re: Mosquitto library.

2024-06-08 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > * if you're on mobile, you can use push Desktop push isn't supported in LC's notifications API? > * you can also set up a small web server in your app to receive messages. > levure uses this technique to receive messages from a plugin in sublime > text that a script has

Re: Mosquitto library.

2024-06-08 Thread Mike Kerner via use-livecode
it might be time for the compiler to come out of the vaporware or the web features to come out of the vaporware if you've never set up a web server, there is example code in levure for setting up a tiny one to receive and respond to events. On Fri, Jun 7, 2024 at 6:15 PM Tom Glod via use-livecode

Re: Mosquitto library.

2024-06-07 Thread Tom Glod via use-livecode
I think it might be time to solve this. On Fri, Jun 7, 2024 at 6:13 PM Tom Glod wrote: > websockets again. > > On Fri, Jun 7, 2024 at 3:46 PM Mike Kerner via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> * if you're on mobile, you can use push >> * you can also set up a small

Re: Mosquitto library.

2024-06-07 Thread Tom Glod via use-livecode
websockets again. On Fri, Jun 7, 2024 at 3:46 PM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > * if you're on mobile, you can use push > * you can also set up a small web server in your app to receive messages. > levure uses this technique to receive messages from a

Re: Mosquitto library.

2024-06-07 Thread Mike Kerner via use-livecode
* if you're on mobile, you can use push * you can also set up a small web server in your app to receive messages. levure uses this technique to receive messages from a plugin in sublime text that a script has been updated (so livecode will reload the script) * if we get websockets working, that

Re: Mosquitto library.

2024-06-07 Thread Peter Bogdanoff via use-livecode
Related to Mosquitto and the publish/subscribe model: is there any method now in LiveCode for my application to receive outside messages without explicitly checking to see if anything is available? In other words, is there a way for a message from a server to directly enter the message path

Re: Mosquitto library.

2024-06-07 Thread Tom Glod via use-livecode
How are you trying to get it to work with Livecode? On Thu, Jun 6, 2024 at 11:06 AM JosebaTELUR via use-livecode < use-livecode@lists.runrev.com> wrote: > Hello: > > I'm trying to get the Mosquitto library to work and can't get it to work. > Any help from the forum? > (LiveCode 9.6.9 and Mojave

Mosquitto library.

2024-06-06 Thread JosebaTELUR via use-livecode
Hello: I'm trying to get the Mosquitto library to work and can't get it to work. Any help from the forum? (LiveCode 9.6.9 and Mojave System). Un saludo. Joseba. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Snapshot question

2024-06-05 Thread Craig Newman via use-livecode
Richard. Intersting stuff. When one first drags a roundRect from the toolbar, the PI has a field to enter a value for the “roundRadius” property. But after a rotation, where the graphic is now defined solely by its “points” property, the ability to get or set that property disappears. I

Re: Snapshot question

2024-06-04 Thread Neville Smythe via use-livecode
> On 5 Jun 2024, at 2:00 am, Craig wrote: > > The docs must be wrong. I just tested with all seven of the graphic options > in the tools palette, and they all rotate just fine. You are absolutely right, a roundedRect graphic does rotate with revPolyRotate. Don’t know why I trusted the docs

Re: Snapshot question

2024-06-04 Thread Richard Gaskin via use-livecode
Craig wrote: > The docs must be wrong. I just tested with all seven of the graphic > options in the tools palette, and they all rotate just fine. I'd guess that Dictionary entry was written before July 7, 2007. In the revcommonlibrary script you'll find the revRotatePoly command on lines 496

Re: Snapshot question

2024-06-04 Thread Craig Newman via use-livecode
The docs must be wrong. I just tested with all seven of the graphic options in the tools palette, and they all rotate just fine. Craig > On May 31, 2024, at 9:30 PM, Neville Smythe via use-livecode > wrote: > > Many thanks Craig and Bernd for your suggestions > > Craig: Unfortunately the

Re: LiveCode on Social Media

2024-06-04 Thread Paul Dupuis via use-livecode
I followed this one for a little while: https://www.reddit.com/r/livecode/ It was not very active, and, like many Reddit groups, prone to SPAM. Reddit, in general, does have a large developer community. On 6/3/2024 7:22 PM, Richard Gaskin via use-livecode wrote: For LC support nothing beats

Re: Snapshot question

2024-06-04 Thread Håkan Liljegren via use-livecode
LiveCode refuses to scale rotated images if the angle is set and lockloc is false but if you set lockloc to true you can scale the rotated image. If you just rotate an image with lockloc set (to true) it will always keep the image inside the original bounding box which is normally not what you

LiveCode on Social Media

2024-06-03 Thread Richard Gaskin via use-livecode
For LC support nothing beats this use-list and the LC Forums, but for spreading the word about LC and the cool stuff you're making with it nothing beat social media. Two of the largest social media discussion groups for LC are: LinkedIn: "LiveCode Developers" Best social media platform for

oAuth in production?

2024-06-03 Thread Tom Glod via use-livecode
Hi Folks, Can anyone confirm that LCs oAuth works well in production and cross platform? Thanks, Tom ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Snapshot question

2024-06-02 Thread Niggemann, Bernd via use-livecode
Neville wrote Now while referenced images such as png’s can be rotated (more precisely, have their angle set) they lose their scaling, reverting to their native size; and rotated images cannot be scaled (why?? set the resizeQuality of the image to good or best depending on your image (images get

Re: Snapshot question

2024-06-02 Thread Niggemann, Bernd via use-livecode
Neville wrote > Now while referenced images such as png’s can be > rotated (more precisely, have their angle set) they lose their scaling, > reverting to their native size; and rotated images cannot be scaled (why?? set the resizeQuality of the image to good or best depending on your image

Re: Snapshot question

2024-05-31 Thread Neville Smythe via use-livecode
Many thanks Craig and Bernd for your suggestions Craig: Unfortunately the docs say revRotatePoly only works with lines, curves and polygons Bernd: Oh! Yes, exporting as png does work to give transparent corner bits! Obvious now! I think I had briefly considered this and rejected it because at

Re: Hierarchical submenus in option menu buttons

2024-05-31 Thread Bob Sneidar via use-livecode
You are correct. Essentially, any menu that offers a list of strings to display on the menu button itself cannot use submenus. It makes sense really. I’ve never seen an option menu in any other application that allows a submenu choice. Bob S > On May 31, 2024, at 6:23 AM, Craig Newman via

Re: Snapshot question

2024-05-31 Thread Craig Newman via use-livecode
AHA, now I remember. Try the “revRotatePoly” command. That seems to work with any graphic. Craig > On May 31, 2024, at 9:32 AM, Craig Newman via use-livecode > wrote: > > I think that only a “regular” polygon graphic can be rotated by setting its > “angle” property.That means that a

Re: Snapshot question

2024-05-31 Thread Craig Newman via use-livecode
I think that only a “regular” polygon graphic can be rotated by setting its “angle” property.That means that a roundRect or rectangular graphic do not respond at all. LC will not throw an error, and the property sticks, but the arc itself does not change.. I could be wrong about all this.

Re: Hierarchical submenus in option menu buttons

2024-05-31 Thread Craig Newman via use-livecode
Hi. I believe that only pullDown and popUp menu styles can support submenus. Combo boxes and Option menus styles do not. Craig > On May 31, 2024, at 5:32 AM, jbv via use-livecode > wrote: > > Hi list, > > I am trying to create a hierarchical submenu in an option menu button > with LC 9.6.

Hierarchical submenus in option menu buttons

2024-05-31 Thread jbv via use-livecode
Hi list, I am trying to create a hierarchical submenu in an option menu button with LC 9.6. I have found this solution that seems to work only with pulldown buttons : https://use-livecode.runrev.narkive.com/cBfAjix2/cascading-menu I also found this LC lesson that suggests to use polylists :

Re: Snapshot question

2024-05-31 Thread Niggemann, Bernd via use-livecode
Export snapshot from object gives a nice image that can serve in place of the graphic except that it has black spots at each corner outside the rounded frame Have you tried as "png"? It should make the black corners transparent. export snapshot from graphic "g1" to image "iDest" as png Kind

Snapshot question

2024-05-30 Thread Neville Smythe via use-livecode
I have a need for rotated graphic objects, in particular a roundrect graphic. Export snapshot from object gives a nice image that can serve in place of the graphic except that it has black spots at each corner outside the rounded frame. Which means the image can really only be used against a

Re: error when creating iOS app: failed to create launch screen: SOLVED

2024-05-30 Thread Klaus major-k via use-livecode
Hi all, > Am 30.05.2024 um 14:27 schrieb Klaus major-k via use-livecode > : > > Hi friends, > > I just wanted to create an iOS app with my new M2 MacMini. > LC 9.6.11, > Xcode 15.0 > Available Device SDKs: 17.0 > Available simulators: 17.0 > > All iOS icons and the launch image are present

error when creating iOS app: failed to create launch screen: /* com.apple.ibtoolerrors */

2024-05-30 Thread Klaus major-k via use-livecode
Hi friends, I just wanted to create an iOS app with my new M2 MacMini. LC 9.6.11, Xcode 15.0 Available Device SDKs: 17.0 Available simulators: 17.0 All iOS icons and the launch image are present and have the correct dimensions, however LC tells me: --- There

Re: Groups id #

2024-05-28 Thread Craig Newman via use-livecode
There is an anomaly with the “last” keyword. It is not reliable with groups. Craig > On May 25, 2024, at 8:03 PM, Bob Sneidar via use-livecode > wrote: > > As I said, the last ID is going to be the stack ID -1. > > Sent from my iPhone > >> On May 25, 2024, at 16:55, Bob Sneidar wrote: >>

Re: Groups id #

2024-05-25 Thread Bob Sneidar via use-livecode
As I said, the last ID is going to be the stack ID -1. Sent from my iPhone > On May 25, 2024, at 16:55, Bob Sneidar wrote: > > sounds logical, but I'm not sure, maybe you could store the ID of the last > group somewhere. ___ use-livecode mailing

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

Re: Groups id #

2024-05-25 Thread Bob Sneidar via use-livecode
IDs are assigned according to the stack ID which increments by 1 every time an object is created. So yes, the stack ID is like an auto increment column in SQL. It assures that no two objects get the same ID, and the last object created is the highest ID in the stack. Sent from my iPhone > On

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

2024-05-25 Thread Mike Kerner via use-livecode
(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 of this year. "T" is today "+" to increment the date field

Re: Strange syntax in new widgets!?

2024-05-25 Thread Klaus major-k via use-livecode
Hi Mike, > Am 25.05.2024 um 17:07 schrieb Mike Kerner via use-livecode > : > > a couple of notes on bob's comments: > * the widgets were written by a third party using lcb. lc purchased the > source. AHA! Well, that explains the "inconsistency" in the syntax. > unfortunately, the source is

Re: Strange syntax in new widgets!?

2024-05-25 Thread Mike Kerner via use-livecode
a couple of notes on bob's comments: * the widgets were written by a third party using lcb. lc purchased the source. unfortunately, the source is closed, so your ability to improve them is limited. (then there's the whole matter of the property editor and property inspector not being documented,

Re: Groups id #

2024-05-25 Thread Klaus major-k via use-livecode
Hi jbv, > Am 25.05.2024 um 16:20 schrieb jbv via use-livecode > : > > Hi list, > > I have a script that creates groups on the fly > with the command "group". These groups contain > various flds and imgs. > Can I always assume that the group with the highest > id # is the last one created ?

Re: Groups id #

2024-05-25 Thread Peter Bogdanoff via use-livecode
Last. "The last keyword <> can be used to specify any object <> whose number <> property <> is equal to the number of objects <> of that type. It can also be used to designate the last chunk <> in a chunk expression <>." > On May 25, 2024, at 10:20 AM, jbv via use-livecode > wrote: > > Hi

Groups id #

2024-05-25 Thread jbv via use-livecode
Hi list, I have a script that creates groups on the fly with the command "group". These groups contain various flds and imgs. Can I always assume that the group with the highest id # is the last one created ? Thanks, jbv ___ use-livecode mailing list

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

2024-05-24 Thread Roger Guay via use-livecode
The single most important feature of LiveCode is this list. Thank you, Bob, Alex, Mike and Andreas Roger > On May 24, 2024, at 8:26 AM, Bob Sneidar via use-livecode > wrote: > > Actually: > > put tList into tTest — so you don’t lose the original contents of tList > filter items of tTest

Re: Place Phone Call MacOS

2024-05-24 Thread Paul Dupuis via use-livecode
FYI: launch url "tel:[phone number]" Works in LC on Windows 11 as well if you have paired your Android or iPhone with Windows. On 5/24/2024 12:28 PM, Andreas Bergendal via use-livecode wrote: There is. The url type is ”tel”. launch url "tel:[phone number]” (Works in the IDE at least, can’t

Re: Place Phone Call MacOS

2024-05-24 Thread Andreas Bergendal via use-livecode
There is. The url type is ”tel”. launch url "tel:[phone number]” (Works in the IDE at least, can’t test standalone/app at the moment.) /Andreas > 24 maj 2024 kl. 18:20 skrev Bob Sneidar via use-livecode > : > > Hi all. > > With MacOS connected to my iPhone, I can place a phone call and use

Place Phone Call MacOS

2024-05-24 Thread Bob Sneidar via use-livecode
Hi all. With MacOS connected to my iPhone, I can place a phone call and use my computer speaker and Mic. I would like to create a button in my app to do that, but I cannot find any infor on how to craft a URL to do that. There probably is no URL type for that anyway. Is there any way I can

Re: Strange syntax in new widgets!?

2024-05-24 Thread Bob Sneidar via use-livecode
Yes I was very surprised when first working with widgets how limited their list of commands and properties are. The only widget I use is the segmented control, and only then because the tab panel looks godaweful ugly in Windows, and I can maintain visual constancy using the segmented control.

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

2024-05-24 Thread Bob Sneidar via use-livecode
Actually: put tList into tTest — so you don’t lose the original contents of tList filter items of tTest with 2 put the number of items of tTest Bob S > On May 24, 2024, at 8:23 AM, Bob Sneidar via use-livecode > wrote: > > Filter items of tList with 2;put the number of items of tList > >

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

2024-05-24 Thread Bob Sneidar via use-livecode
Filter items of tList with 2;put the number of items of tList Bob S > On May 23, 2024, at 7:07 PM, Roger Guay via use-livecode > wrote: > > > Hi all, > > Please, what’s the easiest way to return the total number of a given repeated > number in a list of numbers? IOW, how many times is 2

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

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

2024-05-24 Thread Mike Kerner via use-livecode
i LOVE all of these solutions. chunking is so great. in every language i use, there are two things i always implement: * chunking * quicken date shortcuts On Fri, May 24, 2024 at 2:56 AM Andreas Bergendal via use-livecode < use-livecode@lists.runrev.com> wrote: > Another way to do it is this: >

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

2024-05-24 Thread Andreas Bergendal via use-livecode
Another way to do it is this: function countOccurrences pString repeat for each item tItem in pString add 1 to tFrequencyArray[tItem] end repeat return tFrequencyArray end countOccurrences To get the number of 2’s, just extract tFrequencyArray[2] etc. The advantage is that you

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

2024-05-23 Thread Roger Guay via use-livecode
Very clever, Mike. I never thought to use itemDelimiter this way. I’ll have to play with this. Thanks very much, Roger > On May 23, 2024, at 7:37 PM, Mike Kerner via use-livecode > wrote: > > just spitballing: > let's call our containers "tSearchingFor" and "tSearchString" > > *set* the

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

2024-05-23 Thread Terry Judd via use-livecode
Probably not the shortest approach, but I’d probably do either this… function countItemRepsInList pList, pItem replace comma with cr in pList filter pList with pItem return (the number of lines in pList) end countItemRepsInList or this function countItemRepsInList pList, pItem put 0

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

2024-05-23 Thread Mike Kerner via use-livecode
just spitballing: let's call our containers "tSearchingFor" and "tSearchString" *set* the itemDelimiter to comma & tSearchString & comma *put* the number of items in tSearchingFor - 1 into tNum *if* tSearchString begins with tSearchingFor & comma *then* *add* 1 to tNum *if* tSearchString ends

Return Total of a Given Repeated Number in a List

2024-05-23 Thread Roger Guay via use-livecode
Hi all, Please, what’s the easiest way to return the total number of a given repeated number in a list of numbers? IOW, how many times is 2 repeated in a list containing 1,2,3,2,4,2,5,2,8 etc. Appreciate your help. Thanks, Roger ___ use-livecode

Re: somehow OT, but somehow not - no price information

2024-05-23 Thread Jeff Reynolds via use-livecode
Yikes, I agree this is really not a good turn. I usually see this stuff on stuff marketed to high end firms where price is not much of a factor. Having been an evangelist for Livecode thru all its evolution all the way back to MetaCard days (over three decades), I’m afraid I will not be

Re: somehow OT, but somehow not - no price information anymore on Livecode website

2024-05-23 Thread Paul Dupuis via use-livecode
Pricing still seems to be available for Student and Educational plans: For example, at https://livecode.com/education-plans/ under the "Buy a LiveCode Subscription" there is a link for "View Pricing Options" (https://livecode.com/education-plans/#pricingoptions) It is just Pros & Business

Re: somehow OT, but somehow not - no price information anymore on Livecode website

2024-05-23 Thread Heather Laine via use-livecode
Hello all, This is a temporary change to the website while we transition a few things. Pricing will be restored on the site in due course. Please bear with us. Best Regards, Heather Heather Laine Customer Services Manager LiveCode Ltd www.livecode.com > On 23 May 2024, at 16:29, matthias

Re: somehow OT, but somehow not - no price information anymore on Livecode website

2024-05-23 Thread Bob Sneidar via use-livecode
I agree. I have a long standing issue with companies that want me to give them email, phone and sometimes address in order to get a quote. In the case of your friend, he doesn’t know the company, and does not know he can trust them. How can he tell, he may just end up on a thousand other

somehow OT, but somehow not - no price information anymore on Livecode website

2024-05-23 Thread matthias rebbe via use-livecode
Hi, today I wanted to show a friend, who is interested in using Livecode, the different subscription plans and their prices. But to my surprise, prices are no longer displayed on the website. The interested customers have to request a quote. I am not sure what to think about this. Was this

Re: Saving data in standalone

2024-05-22 Thread Richard Gaskin via use-livecode
When I've used a group as a document view, sometimes I just copy the group to an invisible stackfile for storage. The engine handles stackfiles efficiently and robustly. If we had viewers it'd save me the copy step. https://quality.livecode.com/show_bug.cgi?id=2786 Richard Gaskin

Re: Saving data in standalone

2024-05-21 Thread Tom Glod via use-livecode
Hey Bob, I just tested it and it captured the controls and properties and custom property sets it would take extra work to "restore" a datagrid, because we have to package the template stack.. but i think it will work. Unless there is a property that the datagrid control has that is

Re: Strange syntax in new widgets!?

2024-05-21 Thread Klaus major-k via use-livecode
Hi Bob, > Am 21.05.2024 um 17:09 schrieb Bob Sneidar via use-livecode > : > > I find a lot of the widget properties less than useful. Try setting the > widths of all the tabs of a segmented control to a specified width based upon > the total width of the widget. no, I won't! :-D > Bob S >

Re: Strange syntax in new widgets!?

2024-05-21 Thread Bob Sneidar via use-livecode
I find a lot of the widget properties less than useful. Try setting the widths of all the tabs of a segmented control to a specified width based upon the total width of the widget. Bob S On May 21, 2024, at 7:48 AM, Klaus major-k via use-livecode wrote: Hi firends, this came up in the LC

Re: Saving data in standalone

2024-05-21 Thread Bob Sneidar via use-livecode
Including datagrids? I have a save and restore method for Datagrids, but I don’t think I back up ALL the properties, just the critical ones. Bob S On May 20, 2024, at 5:58 PM, Tom Glod via use-livecode wrote: I have a plugin that is not complete which can save livecode groups and all of

Strange syntax in new widgets!?

2024-05-21 Thread Klaus major-k via use-livecode
Hi firends, this came up in the LC forum: How can I delete a line in a PolyGrid? "deleteline" or something did not work, so I searched the dictionary and found that one needs to set a PROPERTY to do so: ... put 2 into tLine set the pgDeleteRow of widget "PolyGrid" to tLine ... Very intuitive in

Re: Saving data in standalone

2024-05-20 Thread Tom Glod via use-livecode
I have a plugin that is not complete which can save livecode groups and all of their properties, custom properties and scripts. If you'd like I'll send you some of the code. PM me. Should be super easy to find the code u need, and then inverse it. If you did that it would help me complete the

Re: UPDATE: filterArray()

2024-05-20 Thread Bob Sneidar via use-livecode
Yes but what you may not see is that if a memory database already exists and you pass the id it will check for it’s existence, so then all it does is replace the table (if it exists) with the name you pass with a new table containing that parsed array. There may be other tables in the memory

Re: UPDATE: filterArray()

2024-05-20 Thread Richard Gaskin via use-livecode
Bob Sneidar wrote: > I’m surprised about the time differential. I was too, but in the end it kinda makes sense. Both LC and SQLite are complex scripting engines, where code has to be parsed and interpreted into executable machine instructions. The one advantage of filtering LC arrays in LC

Re: UPDATE: filterArray()

2024-05-20 Thread Bob Sneidar via use-livecode
I’m surprised about the time differential. Obviously LC parsing is much faster, I guess because filterArray has the initial overhead of creating and populating the database. I’ve never used it for large datasets. I guess the main advantage for using filterArray() is that using the LC parser,

Re: WebDeployHelper tool - the LC10 web app toolbox

2024-05-19 Thread Curry Kenworthy via use-livecode
Bob: > to build ALL my app for all platforms in one pass, and then being able > to build again without having to quit and relaunch would be nice. Yes, LC should build standalones in one pass/again without issues... And so should you! That is largely BY CHOICE - Not using my workaround code to

Re: UPDATE: filterArray()

2024-05-18 Thread Bob Sneidar via use-livecode
:-) Sent from my iPhone > On May 17, 2024, at 18:57, Richard Gaskin via use-livecode > wrote: > > Thank you, Bob. > > It reminded me of a test I started a while back, and prompted me to finish > the relevant part of it: > > go url "https://fourthworld.net/lc/Array%20vs%20SQLite.livecode;

Re: UPDATE: filterArray()

2024-05-17 Thread Richard Gaskin via use-livecode
Thank you, Bob. It reminded me of a test I started a while back, and prompted me to finish the relevant part of it: go url "https://fourthworld.net/lc/Array%20vs%20SQLite.livecode; Richard Gaskin FourthWorld.com ___ use-livecode mailing list

UPDATE: filterArray()

2024-05-17 Thread Bob Sneidar via use-livecode
I wrote a filterArray() function with a couple dependencies a while ago which uses a memory sqLite database to convert an array to a database, query that database, then return the results as an array. I have a new update to filterArray() which allows for a select clause. I found myself

Re: Saving data in standalone

2024-05-16 Thread Mike Kerner via use-livecode
this is also how levure operates, so if you build with levure, you can just do this with stacks in the project On Thu, May 16, 2024 at 5:08 PM Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > You can save external stacks or created on the fly stacks where ever you > have

Re: Saving data in standalone

2024-05-16 Thread Paul Dupuis via use-livecode
You can save external stacks or created on the fly stacks where ever you have *write* (and read) permission on your OS. Increasingly, whether macOS or Windows, that is not the Applications (macOS) or Program Files/Program Files (x86) (Windows) folders. I find the SAFEST place to save

Re: Saving data in standalone

2024-05-16 Thread Peter Bogdanoff via use-livecode
Craig, Saving: the stacks within the MacOS package and the Windows Applications folders can be saved—within that location? Can new stacks/files be written to those same folders? Peter > On May 16, 2024, at 4:26 PM, Craig Newman via use-livecode > wrote: > > I did not explicitly mention

Re: Saving data in standalone

2024-05-16 Thread Craig Newman via use-livecode
I did not explicitly mention that any and all of the attached stacks are savable. Craig > On May 16, 2024, at 1:31 PM, Paul Dupuis via use-livecode > wrote: > > On 5/16/2024 12:58 PM, Paul Dupuis via use-livecode wrote: >> save that stack under a customer file extension > > That should have

Re: Saving data in standalone

2024-05-16 Thread Craig Newman via use-livecode
There is much discussion about this on the forum. The contents of the executable, the actual standalone you make from a stack, cannot be saved by any OS. I use what is know as the “Splash Stack” method, alluded to by Paul above. In the Application Builder of the stack you are making the actual

  1   2   3   4   5   6   7   8   9   10   >