Re: Question re download timeout setting

2023-07-21 Thread Bob Sneidar via use-livecode
Use sockets to test the connection. Open socket to If the result is not empty then… Close socket Sent from my iPhone > On Jul 21, 2023, at 17:49, Alex Tweedly via use-livecode > wrote: > >  >> On 22/07/2023 01:02, prothero--- via use-livecode wrote: >> Folks: >> Sorry for the trivial que

Re: Has anyone experimented with using Python within LC?

2023-07-21 Thread Bob Sneidar via use-livecode
Out of curiosity, what can be done in in Python that cannot be done in LC Script? Sent from my iPhone > On Jul 21, 2023, at 18:37, Alan Stenhouse via use-livecode > wrote: > > Hi Geoff > > Sorry for not replying earlier but looks like you've got it sorted. I did a > bit on this years ago

Re: Has anyone experimented with using Python within LC?

2023-07-21 Thread Alan Stenhouse via use-livecode
Hi Geoff Sorry for not replying earlier but looks like you've got it sorted. I did a bit on this years ago and am contemplating it again. Just looked for my old stack and see this script for running a python script and putting the output into the "output" fld: on runPythonScript pScript pu

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

Question re download timeout setting

2023-07-21 Thread prothero--- via use-livecode
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 fine when there is internet service. I test access by down

Speed Improvements

2023-07-21 Thread Bob Sneidar via use-livecode
Hi all. I put a compiled version of Forms Generator 8 on a PC recently, and I would like to say that the speed improvements are very substantial from what I was experiencing in the past. SQL queries as well as file operation seem to be almost as fast as on my MacOS laptop. I would not hesitate

Query Android Version Code

2023-07-21 Thread Dan Friedman via use-livecode
Does anyone know if there is a way to query the “Version Code” that you enter in the Application Settings screen? -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscripti

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

2023-07-21 Thread Geoff Canyon via use-livecode
Way back when (in the metacard era) I wrote code to create an XML representation of a stack, and build a copy of the stack from that XML file. Oh, I just checked and I still have a copy of the file. It almost certainly does not address all the nuances that have been added since then -- behaviors,

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

2023-07-21 Thread Craig Newman via use-livecode
Paul. I assume you have a blueprint of what will become a stack with at least one card? And that stack will possibly contain other cards, controls, scripts and behaviors? But since all objects have properties, including scripts, and since LC has the “create” command, whatever you want to do se

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

2023-07-21 Thread Paul Dupuis via use-livecode
As some people on this list and the forums have explored in the past, I have a interest in creating a Livecode application (stack) entirely from a (text only) single script. So there are initially no Livecode objects to place a behavior script in. There are initially no buttons, fields, cards,

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

2023-07-21 Thread Bob Sneidar via use-livecode
I wanted to ask why as well. You can put all the scripts necessary in a card, and if you need to know the actual object the user interacted with use the target command. Eg. Local lTargetID On mouseUp Put the long id of the target into lTargetID /* Your script here */ End mouse

Re: Has anyone experimented with using Python within LC?

2023-07-21 Thread Geoff Canyon via use-livecode
This stack script hacks in support for arbitrary parameters to be passed in easily. You can, of course, do the same by including functions in the python script, and then calling them in the shell statement. That's how I started this journey, but it requires escaping things to make them shell-compa