Re: IP address and Country

2022-11-14 Thread Martin Koob via use-livecode
You can use a website with a api that you send a HTTP request with an IP address parameter to and which returns the country info. Here is an example I found of one site. https://ipapi.co/api/#introduction HTTP Request GET https://ipapi.co/{ip}/{format}/ URL Parameters Parameter

Re: IP address and Country

2022-11-14 Thread harrison--- via use-livecode
Hi Bob, Yes, that website illustrates what I’m trying to do, but I really need my own code for this. Thanks for the suggestion anyway. Rick > On Nov 14, 2022, at 7:57 PM, Bob Sneidar via use-livecode > wrote: > > Is that a fixed thing? Can it ever change? Seems like there must be a web >

Re: IP address and Country

2022-11-14 Thread Bob Sneidar via use-livecode
Is that a fixed thing? Can it ever change? Seems like there must be a web site for that. I found https://www.ipvoid.com/ip-to-country/. They may license the tool that does this. Bob S On Nov 14, 2022, at 16:50 , harrison--- via use-livecode mailto:use-livecode@lists.runrev.com>> wrote:

IP address and Country

2022-11-14 Thread harrison--- via use-livecode
Greetings LiveCoders, I’m trying to set up an LC Server routine to retrieve the country name where the user is supposedly located by using the user’s IP Address and a cross-reference table. I’m sure someone here must have done something similar in the past and I was wondering what the best

Re: itemoffset & wholematches

2022-11-14 Thread J. Landman Gay via use-livecode
How about a one-liner: put wordOffset("incertain",myVar) If the words ever have punctuation attached, use trueWordOffset. On 11/14/22 6:51 AM, jbv via use-livecode wrote: Hi list, I have a variable with a content of 3 lines as follows : 1    sombre    brun    profond 2    flou    incertain 3 

Re: Auto-Complete

2022-11-14 Thread Bob Sneidar via use-livecode
As usual, nvm. I found it in the SE Edit Menu. I think Jacque answered this for me before. Bob S > On Nov 14, 2022, at 11:57 , Bob Sneidar wrote: > > I've probably asked this before, or someone has, but while I really like the > suggestions when editing a script, I decidedly do NOT like

Auto-Complete

2022-11-14 Thread Bob Sneidar via use-livecode
I've probably asked this before, or someone has, but while I really like the suggestions when editing a script, I decidedly do NOT like the auto-encapsulation of things, by which I mean if I type a quote, it happens another quote right after. If I type a left square bracket, it appends a right

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: itemoffset & wholematches

2022-11-14 Thread Bob Sneidar via use-livecode
oic. Odd use case. I suppose a lineOffset function followed by is among the items could be used. If he needs the lines to remain intact he could also replace cr with tab & cr first. Bob S On Nov 14, 2022, at 10:15 , Mike Kerner via use-livecode mailto:use-livecode@lists.runrev.com>> wrote:

Re: itemoffset & wholematches

2022-11-14 Thread Mike Kerner via use-livecode
that still won't work if the text is the last item of a line. in the example, below, i've taken his original, replaced the tabs with commas, and for the purpose of being able to read what's going on, substituted the cr for a backslash, and added a line to substitute it back for the test. *put*

Re: Anyone any experience with Livecode under Ventura?

2022-11-14 Thread panagiotis m via use-livecode
Hello all, We received a report about "Close and remove from memory" not working on MacOS Ventura (https://quality.livecode.com/show_bug.cgi?id=24008). I have not upgraded yet - so I was wondering if anyone has seen this issue on MacOS Ventura? Kind regards, Panos -- On Mon, 14 Nov 2022 at

Re: Anyone any experience with Livecode under Ventura?

2022-11-14 Thread Bob Sneidar via use-livecode
There is a utility that can actually modify the schedule. I downloaded it and am using it at home, but currently I am at work. I'll try to remember to check that when I get home, but you can google it. Bob S On Nov 13, 2022, at 24:02 , Mark Smith via use-livecode

Re: itemoffset & wholematches

2022-11-14 Thread Bob Sneidar via use-livecode
Why not just use is among the items? Bob S > On Nov 14, 2022, at 04:51 , jbv via use-livecode > wrote: > > Hi list, > > I have a variable with a content of 3 lines as follows : > 1 sombre brunprofond > 2 flouincertain > 3 inexploré mystérieux inconnu > >

Re: About that Enter key

2022-11-14 Thread Bob Sneidar via use-livecode
Ahah! For my part, I just recently updated to RC2 because of the Nested Datagrid Behavior fix. (Thanks again LC). But it really doesn't matter to me as I am in the habit of using Tab to format the script, and Save as a means of compiling and saving at the same time. Bob S > On Nov 12,

Re: Easy Android adaptive icons

2022-11-14 Thread Bob Sneidar via use-livecode
I am always learning new things as well, only on account of I forget so much. Bob S On Nov 12, 2022, at 11:08 , Klaus major-k via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Hi Jacque, Am 12.11.2022 um 19:24 schrieb J. Landman Gay via use-livecode

Re: Anyone any experience with Livecode under Ventura?

2022-11-14 Thread Mike Kerner via use-livecode
just one note that has bitten me, about using these cloud backup services: they are not great at storing databases (which includes git repos, since the git tree is just a db). there are db's that take snapshots as part of their backup process (then you backup the snapshot, not the db). backing up

Re: itemoffset & wholematches

2022-11-14 Thread Mike Kerner via use-livecode
the easy way to fix this problem: replace cr with tab in myVar -- but if the line endings matter, this isn't great On Mon, Nov 14, 2022 at 9:00 AM Mike Kerner wrote: > you set the itemDelimiter to tab. the is part of the item. > -- On the first day, God created the heavens and the Earth On

Re: itemoffset & wholematches

2022-11-14 Thread Mike Kerner via use-livecode
you set the itemDelimiter to tab. the is part of the item. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

itemoffset & wholematches

2022-11-14 Thread jbv via use-livecode
Hi list, I have a variable with a content of 3 lines as follows : 1 sombre brunprofond 2 flouincertain 3 inexploré mystérieux inconnu The separator between words is tab. I want to check if a certain word is among the items as a whole. The following script