Thanks again, Jacque.
My solution for migrating preference files from the Preferences folder to the
Container turned out to be quite simple but for some reason I spent a bunch of
time pondering other more complicated methods. In the end I changed an existing
function which returns a path to the
What I found out is that the app container has permission automatically.
That's the only place though. All other file access has to be initiated by
the user.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On July 14, 2023 6:18:45 PM Bob
I don’t think there is any way past this. Ultimately the permissions to write
to any path must be authorized by the current user agent. If they accept, well
and good. If not, there cannot be any way around it.
Sent from my iPhone
> On Jul 14, 2023, at 16:07, J. Landman Gay via use-livecode
>
On 7/14/23 4:10 PM, scott--- via use-livecode wrote:
If the file (say a preference.txt file) already exists in the Preferences or
App Support folder, are we able to continue writing to it? In other words, is
this an issue with the creation of the file or also of writing in general?
How are yo
Create file and write permissions are very seldom different.
Sent from my iPhone
> On Jul 14, 2023, at 14:11, scott--- via use-livecode
> wrote:
>
> Hello Jacque, I haven’t encountered this yet so I’m hoping to get some
> advice about how to proceed. 2 questions:
>
> If the file (say a p
Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice
about how to proceed. 2 questions:
If the file (say a preference.txt file) already exists in the Preferences or
App Support folder, are we able to continue writing to it? In other words, is
this an issue with the c
Hello Jacque, I haven’t encountered this yet so I’m hoping to get some advice
about how to proceed. 2 questions:
If the file (say a preference.txt file) already exists in the Preferences or
App Support folder, are we able to continue writing to it? In other words, is
this an issue with the c
On 7/14/23 11:14 AM, Mark Smith via use-livecode wrote:
BTW, is there a way of determining the default highlight colour?
The dictionary says: "By default, the global hiliteColor property is set to the system
highlight color."
I'd guess yours is blue. That's pretty standard on Mac.
--
Jacque
On 7/14/23 7:16 AM, Klaus major-k via use-livecode wrote:
I am looking for a support email at GOOGLE Dev.
My problem is the search engine of Google Play Store.
Just like the subject says. ;-)
Oh right, I'm supposed to read the subject title. Oops. This is the closest
thing I could find:
Because I’m not that good with regular expressions and the format function. :-)
But you example has one too many close parens.
Also, for SQL Date I do not thing UK or US matters. It’s -MM-DD everywhere,
isn’t it?
Also, I assumed that the localization of the LC engine would take into accou
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",
Use the effective keyword as in:
put the effective hiliteColor of field X into tHiliteColor
It will figure out the color by inheritance. If you just put the
hiliteColor of field X (without it being set specifically for field X)
your get empty
On 7/14/2023 12:14 PM, Mark Smith wrote:
BTW,
Hi Ludovic.
I use a simple method of sockets to determine if I have a connection to a host.
I close the socket first:
closeSocket 127.0.0.1:3306
Then I open the socket:
Open socket to 127.0.0.1:3306
Put the result into tError
If terror begins with “ERROR: “ then
— your code here
End if
BTW, is there a way of determining the default highlight colour? When I select
some text in a field it highlights to a light blue color, but I can’t find
where that color is set.
Thanks
Mark
> On 13 Jul 2023, at 11:01 pm, Paul Dupuis via use-livecode
> wrote:
>
> On 7/12/2023 6:21 PM, Paul
Oooohhh… code candy! Thanks again Ralph!
Bob S
> On Jul 14, 2023, at 9:04 AM, Ralph DiMola via use-livecode
> wrote:
>
> Bob,
>
> I use this function to return an array of the timeouts.
>
> function EIStsNetGetTimeouts
> local tTimeouts, tTsNetTimeoutArray
> put tsNetGetTimeouts() into
Bob,
I use this function to return an array of the timeouts.
function EIStsNetGetTimeouts
local tTimeouts, tTsNetTimeoutArray
put tsNetGetTimeouts() into tTimeouts
put item 1 of tTimeouts into tTsNetTimeoutArray["DnsCacheTimeout"]
put item 2 of tTimeouts into tTsNetTimeoutArray["Reque
Thanks Ralph, very handy, but is there a way to get the timeout to see if the
command to set the timeout worked? I change networks frequently, and if I do
not disconnect and reconnect to my SQL database, I run the risk of using a
stale connection, and then I face the dreaded 60 second stall befo
Sorry,
It was mine...
function GetNetworkType
local tLibUrlDriver
try
put the behavior of stack"revLibUrl" into tLibUrlDriver
end try
if tLibUrlDriver is empty then
return "libURL"
else
return "tsNet"
end if
end GetNetworkType
Ralph DiMola
IT Director
Evergree
Hmmm… I read the enhancement request. I’m still in the dark though on how to
get to "2023-07-14 08:30:00" from “7/14/23” using format strings. Here’s my
solution for those who do not want to download the masterLibrary. Given these,
what else do you need?
FUNCTION formatDate theDate, theFormat
We actually do with LCB libraries (Icon SVG Library is one example), but with
the caveat that they are not as performant as LCS code in many cases (compare
the LCS and LCB implementations of JSON for example). LCS libraries are doable
too. Just make everything internal private/script local and
getNetwotkType() is not a valid function.
Bob S
> On Jul 14, 2023, at 8:14 AM, Ralph DiMola via use-livecode
> wrote:
>
> Ludovic,
>
> Make sure that tsNet is active:
>
> command NetworkType
> if GetNetworkType() = "libURL" then
> answer"tsNet is disabled(LibURL)"
> else
> an
I’m interested in this. But how do you GET the timeout?
Bob S
> On Jul 13, 2023, at 11:26 PM, Ludovic THEBAULT via use-livecode
> wrote:
>
> Hello,
>
> I use this code to check is there is an internet connection :
>
> tsNETSETTIMEOUTS 60,0,2000,6,5,1000
>
> put tsNetHeadSync("https://
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 is far more useful to everyone if they focus on
completing
Ludovic,
Make sure that tsNet is active:
command NetworkType
if GetNetworkType() = "libURL" then
answer"tsNet is disabled(LibURL)"
else
answer "tsNet in use"&cr&"Version==>"& tsNetVersion()
end if
end NetworkType
Did you initialize tsNet? ==> tsNetInit
Disable tsNet ==> dis
Hi Jacques,
> Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode
> :
>
> On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote:
>>> You could try writing to support and see if they can tell you what's wrong.
>> yes, worth a try, do you have the supports email address?
> Sorry for
Which makes me think, it would be nice if we could have plug-in code modules.
Essentially a faceless widget that could be called to perform some sort of
action (with parameters). Completely encapsulated. Or is that “bat crazy” as
Mike would say 😊
> On 14 Jul 2023, at 12:08 pm, Paul Dupuis via u
Yes to this. I have, lot so many developer, a set of functions to
translate to and from this date format.
We can all write our own or use ones others have provided, but it would
be nice if this was built into the language.
On 7/13/2023 10:59 PM, Neville Smythe via use-livecode wrote:
Jacque
Hi Jacques,
> Am 13.07.2023 um 22:43 schrieb J. Landman Gay via use-livecode
> :
>
> On 7/11/23 2:44 PM, Klaus major-k via use-livecode wrote:
>>> You could try writing to support and see if they can tell you what's wrong.
>> yes, worth a try, do you have the supports email address?
>
> Sorry f
> Le 14 juil. 2023 à 08:26, Ludovic THEBAULT via use-livecode
> a écrit :
>
> Hello,
>
> I use this code to check is there is an internet connection :
>
> tsNETSETTIMEOUTS 60,0,2000,6,5,1000
>
> put tsNetHeadSync("https://google.com/";, tHeaders, tResult, tBytes) into
> tRecvHeaders
>
29 matches
Mail list logo