Re: Quick IDE question

2020-04-29 Thread dunbarx--- via use-livecode
Can you explicitly set the rect of the SE? I do this all the time because I 
have it located on a large vertically oriented monitor adjacent to my main 
screen, and the loc needs to be refreshed now and then depending on other stuff 
I use them for.
Craig


-Original Message-
From: Graham Samuel via use-livecode 
To: How to use LiveCode 
Cc: Graham Samuel 
Sent: Wed, Apr 29, 2020 9:13 am
Subject: Quick IDE question

Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time I 
open the Script Editor window, it overfills my screen, so I can’t see the 
bottom of the window. There are no decorations, so I can’t resize or minimise 
the window; and dragging the window by the title bar doesn’t work either. I’ve 
restarted both versions but no joy. Everything else seems to be working 
normally and the other LC windows have decorations.

I don’t believe I’ve ever seen this before. Does anyone know how I can get out 
of it?

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Quick IDE question

2020-04-29 Thread Martin Koob via use-livecode
Hi Graham

Try this in the message box

set the rect of stack "revNewScriptEditor 1" to the screenrect; set the height 
of stack "revNewScriptEditor 1" to 750




Regards,

Martin Koob





> On Apr 29, 2020, at 9:11 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time I 
> open the Script Editor window, it overfills my screen, so I can’t see the 
> bottom of the window. There are no decorations, so I can’t resize or minimise 
> the window; and dragging the window by the title bar doesn’t work either. 
> I’ve restarted both versions but no joy. Everything else seems to be working 
> normally and the other LC windows have decorations.
> 
> I don’t believe I’ve ever seen this before. Does anyone know how I can get 
> out of it?
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Livecode HTML5 and SQL

2020-04-29 Thread Colin Kelly via use-livecode
Anyone got any insightful ways of READING/WRITING to a mySQL table using 
web-apps developed with Livecode HTML5?

 

Thanks

Col.

 

-- 

Colin Kelly

M 07951 920680

 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Best relational database for IOS / Android

2020-04-29 Thread doc hawk via use-livecode


Rick rejoined,

> I have a preference for PostgreSQL.

I recoded for Postgres from mysql a few years ago simply because, at the time 
at least, livecode can send a compound transaction to Postgres, and only single 
transactions to mysql.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Best relational database for IOS / Android

2020-04-29 Thread Skip Kimpel via use-livecode
Good morning,

In your opinion, what is the best relational database to use for an IOS /
Android application?

Being a PC guy and always living in the Microsoft world, I always default
to SQL, however, with my latest discoveries of the complexities involved
and lack of support in LC I don't think that would be the best move at this
point.

Suggestions?

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Best relational database for IOS / Android

2020-04-29 Thread Mike Kerner via use-livecode
do you mean for c/s?  if it's client-only, then sqlite and mysql are
perfectly integrated into lc for ios.

On Wed, Apr 29, 2020 at 9:55 AM Skip Kimpel via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Good morning,
>
> In your opinion, what is the best relational database to use for an IOS /
> Android application?
>
> Being a PC guy and always living in the Microsoft world, I always default
> to SQL, however, with my latest discoveries of the complexities involved
> and lack of support in LC I don't think that would be the best move at this
> point.
>
> Suggestions?
>
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Best relational database for IOS / Android

2020-04-29 Thread Ralph DiMola via use-livecode
For a DB local on the device I use SQLite and it holds up well with very
complex multi table queries.
For a remote database I have had no problems with MySQL and it's open source
brother MariaDB.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Skip Kimpel via use-livecode
Sent: Wednesday, April 29, 2020 9:54 AM
To: How to use LiveCode
Cc: Skip Kimpel
Subject: Best relational database for IOS / Android

Good morning,

In your opinion, what is the best relational database to use for an IOS /
Android application?

Being a PC guy and always living in the Microsoft world, I always default to
SQL, however, with my latest discoveries of the complexities involved and
lack of support in LC I don't think that would be the best move at this
point.

Suggestions?

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Quick IDE question

2020-04-29 Thread Graham Samuel via use-livecode
Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time I 
open the Script Editor window, it overfills my screen, so I can’t see the 
bottom of the window. There are no decorations, so I can’t resize or minimise 
the window; and dragging the window by the title bar doesn’t work either. I’ve 
restarted both versions but no joy. Everything else seems to be working 
normally and the other LC windows have decorations.

I don’t believe I’ve ever seen this before. Does anyone know how I can get out 
of it?

Graham
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: Best relational database for IOS / Android

2020-04-29 Thread Clarence Martin via use-livecode
You may want to explore LiveCloud. It is a cloud based database by Canela
Software that allows for both cloud and Local- to the device- database.
http://canelasoftware.com/
I am developing and testing for a while.

-Original Message-
From: use-livecode  On Behalf Of Skip
Kimpel via use-livecode
Sent: Wednesday, April 29, 2020 6:54 AM
To: How to use LiveCode 
Cc: Skip Kimpel 
Subject: Best relational database for IOS / Android

Good morning,

In your opinion, what is the best relational database to use for an IOS /
Android application?

Being a PC guy and always living in the Microsoft world, I always default to
SQL, however, with my latest discoveries of the complexities involved and
lack of support in LC I don't think that would be the best move at this
point.

Suggestions?

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Quick IDE question

2020-04-29 Thread Martin Koob via use-livecode
Hi Craig

The script editor is a stack just like any other so what you can do to a stack 
you can do to it.

To find the name of it you can type the following into the Message Box:

put the openstacks

That will show a list in the message box of all the stacks open including the 
stack you are working on, here “My great app” and all the UI currently opened 
UI stacks.

Message Box
revNewScriptEditor 1
My great app
revPropertyInspector 1
revInspector
revTools
Improve LiveCode Handler Finder
revMenuBar
com.livecode.palette.autocomplete.completions


If you have more than one SE or property inspector it numbers them.

i.e..


1. open new Script in a new window
2. open a property inspector for a second object

3. Type in message box "put the openstacks"

New listing

Message Box
revPropertyInspector 2
revInspector
My great app
revTools
revNewScriptEditor 1
revNewScriptEditor 2
Improve LiveCode Handler Finder
revMenuBar
revPropertyInspector 1
com.livecode.palette.autocomplete.completions

from the list of open stacks you can find the stack names so you can set their 
properties.

You can set stack properties like loc rect, height, etc.   


You could make a small stack with buttons that set all your UI elements where 
you want them for each of your use cases and have them all fly to their 
respective positions and sizes.   Maybe someone has made a plugin like that.
 

Regards,

Martin Koob





> On Apr 29, 2020, at 9:20 AM, dunbarx--- via use-livecode 
>  wrote:
> 
> Can you explicitly set the rect of the SE? I do this all the time because I 
> have it located on a large vertically oriented monitor adjacent to my main 
> screen, and the loc needs to be refreshed now and then depending on other 
> stuff I use them for.
> Craig
> 
> 
> -Original Message-
> From: Graham Samuel via use-livecode 
> To: How to use LiveCode 
> Cc: Graham Samuel 
> Sent: Wed, Apr 29, 2020 9:13 am
> Subject: Quick IDE question
> 
> Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time I 
> open the Script Editor window, it overfills my screen, so I can’t see the 
> bottom of the window. There are no decorations, so I can’t resize or minimise 
> the window; and dragging the window by the title bar doesn’t work either. 
> I’ve restarted both versions but no joy. Everything else seems to be working 
> normally and the other LC windows have decorations.
> 
> I don’t believe I’ve ever seen this before. Does anyone know how I can get 
> out of it?
> 
> Graham
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Best relational database for IOS / Android

2020-04-29 Thread Rick Harrison via use-livecode
Hi Skip,

I have a preference for PostgreSQL.

https://www.postgresql.org 

Free - MIT-License, Open-source, and
it works really well with LC.

Good luck!

Rick





> On Apr 29, 2020, at 9:54 AM, Skip Kimpel via use-livecode 
>  wrote:
> 
> Good morning,
> 
> In your opinion, what is the best relational database to use for an IOS /
> Android application?
> 
> Being a PC guy and always living in the Microsoft world, I always default
> to SQL, however, with my latest discoveries of the complexities involved
> and lack of support in LC I don't think that would be the best move at this
> point.
> 
> Suggestions?
> 
> SKIP
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode HTML5 and SQL

2020-04-29 Thread Devin Asay via use-livecode
Colin,

I haven’t tried it myself, but I would think you’d have to write an API layer 
using LiveCode Server scripting. All of the MySQL reads and writes would take 
place in your .lc scripts on LC Server. Then it would be simple, RESTful http 
calls from your HTML5 app. Of course, this all depends upon whether the 
internet libraries have been ported over to the HTML5 platform. LiveCode 
Server—I’ve done lots. HTML5 deployment, almost none.

Hope this helps.

Devin


> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>  wrote:
> 
> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
> web-apps developed with Livecode HTML5?
> 
> 
> 
> Thanks
> 
> Col.
> 
> 
> 
> -- 
> 
> Colin Kelly
> 
> M 07951 920680
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode HTML5 and SQL

2020-04-29 Thread Devin Asay via use-livecode
That’s good to know, Matthias. So it seems that what you’d have to do is, still 
do the MySQL I/O in LC Server scripts, but also dynamically construct the HTML 
output in your LC server scripts, so that the calling HTML5 app could make 
sense of it. 

Am I interpreting the situation correctly, Matthias?

Devin


> On Apr 29, 2020, at 12:13 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> I was also thinking about using LC Server or PHP scripts, but if i understand 
> it correctly then  "put URL" or "POST.. to URL" aren't  currently supported 
> in the LC HTML5 engine.
> Only "load URL" is supported and only for http / https.
> 
> Matthias
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
>> Am 29.04.2020 um 20:06 schrieb Devin Asay via use-livecode 
>> :
>> 
>> Colin,
>> 
>> I haven’t tried it myself, but I would think you’d have to write an API 
>> layer using LiveCode Server scripting. All of the MySQL reads and writes 
>> would take place in your .lc scripts on LC Server. Then it would be simple, 
>> RESTful http calls from your HTML5 app. Of course, this all depends upon 
>> whether the internet libraries have been ported over to the HTML5 platform. 
>> LiveCode Server—I’ve done lots. HTML5 deployment, almost none.
>> 
>> Hope this helps.
>> 
>> Devin
>> 
>> 
>>> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>>>  wrote:
>>> 
>>> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
>>> web-apps developed with Livecode HTML5?
>>> 
>>> 
>>> 
>>> Thanks
>>> 
>>> Col.
>>> 
>>> 
>>> 
>>> -- 
>>> 
>>> Colin Kelly
>>> 
>>> M 07951 920680
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode HTML5 and SQL

2020-04-29 Thread matthias rebbe via use-livecode
If "post... to url" and "put URL..."  would work, then it should work with 
HTLM5.

But currently only load URL is supported.

But to be true, i am not sure about "load URL.."  
I´ve used load URL only for downloading files in the past.  I am not sure if 
the command can also be used with parameters in the URL. But why shouldn't it 
work.


I´ve did a quick test today without parameters in the URL  to just load an URL 
and display the returned data in a field.

This script

local tMyURL

on mouseup

put "start" into fld 1

put "https://www.google.com " into tMyUrl

load URL tMyUrl with message "myUrlDownloadFinished"

END MOUSEUP



on myUrlDownloadFinished

answer "Download Complete"cachedURLS with "Okay"

set the text of fld 1 to url tMyURL

end myUrlDownloadFinished



worked in the IDE, but not in HTML5. While "start" was displayed in field 1, 
the returned data of the cached URL wasn't.

But maybe i am missing something.

Matthias




> Am 29.04.2020 um 20:19 schrieb Devin Asay via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> That’s good to know, Matthias. So it seems that what you’d have to do is, 
> still do the MySQL I/O in LC Server scripts, but also dynamically construct 
> the HTML output in your LC server scripts, so that the calling HTML5 app 
> could make sense of it. 
> 
> Am I interpreting the situation correctly, Matthias?
> 
> Devin
> 
> 
>> On Apr 29, 2020, at 12:13 PM, matthias rebbe via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> I was also thinking about using LC Server or PHP scripts, but if i 
>> understand it correctly then  "put URL" or "POST.. to URL" aren't  currently 
>> supported in the LC HTML5 engine.
>> Only "load URL" is supported and only for http / https.
>> 
>> Matthias
>> 
>> 
>> -
>> Matthias Rebbe
>> Life Is Too Short For Boring Code
>> 
>>> Am 29.04.2020 um 20:06 schrieb Devin Asay via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>>:
>>> 
>>> Colin,
>>> 
>>> I haven’t tried it myself, but I would think you’d have to write an API 
>>> layer using LiveCode Server scripting. All of the MySQL reads and writes 
>>> would take place in your .lc scripts on LC Server. Then it would be simple, 
>>> RESTful http calls from your HTML5 app. Of course, this all depends upon 
>>> whether the internet libraries have been ported over to the HTML5 platform. 
>>> LiveCode Server—I’ve done lots. HTML5 deployment, almost none.
>>> 
>>> Hope this helps.
>>> 
>>> Devin
>>> 
>>> 
 On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
 mailto:use-livecode@lists.runrev.com>> 
 wrote:
 
 Anyone got any insightful ways of READING/WRITING to a mySQL table using 
 web-apps developed with Livecode HTML5?
 
 
 
 Thanks
 
 Col.
 
 
 
 -- 
 
 Colin Kelly
 
 M 07951 920680
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com 
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> Devin Asay
>>> Director
>>> Office of Digital Humanities
>>> Brigham Young University
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-
Matthias Rebbe
Life Is Too Short For Boring Code

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode HTML5 and SQL

2020-04-29 Thread matthias rebbe via use-livecode
I have to correct myself.

The script works when i call an url that is on the same server as the html5 app 
is called from.
And more important parameters can also be used.

And as Sean already posted about a HTML5 library, it´s possible to use an HTML5 
app with an api layer using LC Server or PHP scripts.





> Am 29.04.2020 um 21:00 schrieb matthias rebbe via use-livecode 
> :
> 
> If "post... to url" and "put URL..."  would work, then it should work with 
> HTLM5.
> 
> But currently only load URL is supported.
> 
> But to be true, i am not sure about "load URL.."  
> I´ve used load URL only for downloading files in the past.  I am not sure if 
> the command can also be used with parameters in the URL. But why shouldn't it 
> work.
> 
> 
> I´ve did a quick test today without parameters in the URL  to just load an 
> URL and display the returned data in a field.
> 
> This script
> 
> local tMyURL
> 
> on mouseup
> 
> put "start" into fld 1
> 
> put "https://www.google.com " into tMyUrl
> 
> load URL tMyUrl with message "myUrlDownloadFinished"
> 
> END MOUSEUP
> 
> 
> 
> on myUrlDownloadFinished
> 
> answer "Download Complete"cachedURLS with "Okay"
> 
> set the text of fld 1 to url tMyURL
> 
> end myUrlDownloadFinished
> 
> 
> 
> worked in the IDE, but not in HTML5. While "start" was displayed in field 1, 
> the returned data of the cached URL wasn't.
> 
> But maybe i am missing something.
> 
> Matthias
> 
> 
> 
> 
>> Am 29.04.2020 um 20:19 schrieb Devin Asay via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> That’s good to know, Matthias. So it seems that what you’d have to do is, 
>> still do the MySQL I/O in LC Server scripts, but also dynamically construct 
>> the HTML output in your LC server scripts, so that the calling HTML5 app 
>> could make sense of it. 
>> 
>> Am I interpreting the situation correctly, Matthias?
>> 
>> Devin
>> 
>> 
>>> On Apr 29, 2020, at 12:13 PM, matthias rebbe via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> I was also thinking about using LC Server or PHP scripts, but if i 
>>> understand it correctly then  "put URL" or "POST.. to URL" aren't  
>>> currently supported in the LC HTML5 engine.
>>> Only "load URL" is supported and only for http / https.
>>> 
>>> Matthias
>>> 
>>> 
>>> -
>>> Matthias Rebbe
>>> Life Is Too Short For Boring Code


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Best relational database for IOS / Android

2020-04-29 Thread Rick Harrison via use-livecode
Nice!

> On Apr 29, 2020, at 12:15 PM, doc hawk via use-livecode 
>  wrote:
> 
> I recoded for Postgres from mysql a few years ago simply because, at the time 
> at least, livecode can send a compound transaction to Postgres, and only 
> single transactions to mysql.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Quick IDE question

2020-04-29 Thread Martin Koob via use-livecode
Hi Graham

Glad it worked.

Getting the decorations and dragability back is just a matter of getting the 
stack rect within the rect of the screen.

LiveCode IDE parts sometimes get a mind of their own and set out a wanderin’ — 
who knows why.  Setting their loc to the screenloc will put them right in the 
centre of the screen so you can deal with them there.

Martin


> On Apr 29, 2020, at 2:46 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> Stone the crows, it worked!! Even the decorations came back, and the ability 
> to drag the window - neither of which are obviously related to the rect or 
> height of the stack, as far as I can see.
> 
> Thanks so much Martin. I wonder how just the Script Editor got so out of 
> whack - but it’s just a theoretical wonder, as I am back to normal.
> 
> Thanks again.
> 
>> On 29 Apr 2020, at 15:35, Martin Koob via use-livecode 
>>  wrote:
>> 
>> Hi Graham
>> 
>> Try this in the message box
>> 
>> set the rect of stack "revNewScriptEditor 1" to the screenrect; set the 
>> height of stack "revNewScriptEditor 1" to 750
>> 
>> 
>> 
>> 
>> Regards,
>> 
>> Martin Koob
>> 
>> 
>> 
>> 
>> 
>>> On Apr 29, 2020, at 9:11 AM, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time 
>>> I open the Script Editor window, it overfills my screen, so I can’t see the 
>>> bottom of the window. There are no decorations, so I can’t resize or 
>>> minimise the window; and dragging the window by the title bar doesn’t work 
>>> either. I’ve restarted both versions but no joy. Everything else seems to 
>>> be working normally and the other LC windows have decorations.
>>> 
>>> I don’t believe I’ve ever seen this before. Does anyone know how I can get 
>>> out of it?
>>> 
>>> Graham
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode HTML5 and SQL

2020-04-29 Thread Pi Digital via use-livecode
Hi Colin

I have a library I’ve created for HTML5 and php for LiveCode Deployment. Pm me 
at s...@pidigital.co.uk

Sean Cole
Pi Digital Productions Ltd


eMail Ts & Cs


> On 29 Apr 2020, at 20:00, matthias rebbe via use-livecode 
>  wrote:
> 
> If "post... to url" and "put URL..."  would work, then it should work with 
> HTLM5.
> 
> But currently only load URL is supported.
> 
> But to be true, i am not sure about "load URL.."  
> I´ve used load URL only for downloading files in the past.  I am not sure if 
> the command can also be used with parameters in the URL. But why shouldn't it 
> work.
> 
> 
> I´ve did a quick test today without parameters in the URL  to just load an 
> URL and display the returned data in a field.
> 
> This script
> 
> local tMyURL
> 
> on mouseup
> 
> put "start" into fld 1
> 
> put "https://www.google.com " into tMyUrl
> 
> load URL tMyUrl with message "myUrlDownloadFinished"
> 
> END MOUSEUP
> 
> 
> 
> on myUrlDownloadFinished
> 
> answer "Download Complete"cachedURLS with "Okay"
> 
> set the text of fld 1 to url tMyURL
> 
> end myUrlDownloadFinished
> 
> 
> 
> worked in the IDE, but not in HTML5. While "start" was displayed in field 1, 
> the returned data of the cached URL wasn't.
> 
> But maybe i am missing something.
> 
> Matthias
> 
> 
> 
> 
>> Am 29.04.2020 um 20:19 schrieb Devin Asay via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> That’s good to know, Matthias. So it seems that what you’d have to do is, 
>> still do the MySQL I/O in LC Server scripts, but also dynamically construct 
>> the HTML output in your LC server scripts, so that the calling HTML5 app 
>> could make sense of it. 
>> 
>> Am I interpreting the situation correctly, Matthias?
>> 
>> Devin
>> 
>> 
 On Apr 29, 2020, at 12:13 PM, matthias rebbe via use-livecode 
 mailto:use-livecode@lists.runrev.com>> 
 wrote:
>>> 
>>> I was also thinking about using LC Server or PHP scripts, but if i 
>>> understand it correctly then  "put URL" or "POST.. to URL" aren't  
>>> currently supported in the LC HTML5 engine.
>>> Only "load URL" is supported and only for http / https.
>>> 
>>> Matthias
>>> 
>>> 
>>> -
>>> Matthias Rebbe
>>> Life Is Too Short For Boring Code
>>> 
 Am 29.04.2020 um 20:06 schrieb Devin Asay via use-livecode 
 mailto:use-livecode@lists.runrev.com>>:
 
 Colin,
 
 I haven’t tried it myself, but I would think you’d have to write an API 
 layer using LiveCode Server scripting. All of the MySQL reads and writes 
 would take place in your .lc scripts on LC Server. Then it would be 
 simple, RESTful http calls from your HTML5 app. Of course, this all 
 depends upon whether the internet libraries have been ported over to the 
 HTML5 platform. LiveCode Server—I’ve done lots. HTML5 deployment, almost 
 none.
 
 Hope this helps.
 
 Devin
 
 
> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
> mailto:use-livecode@lists.runrev.com>> 
> wrote:
> 
> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
> web-apps developed with Livecode HTML5?
> 
> 
> 
> Thanks
> 
> Col.
> 
> 
> 
> -- 
> 
> Colin Kelly
> 
> M 07951 920680
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 Devin Asay
 Director
 Office of Digital Humanities
 Brigham Young University
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com 
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com 
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> Devin Asay
>> Director
>> Office of Digital Humanities
>> Brigham Young University
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com 
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> 
> -
> Matthias Rebbe
> Life Is Too Short For Boring Code
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please 

Re: Best relational database for IOS / Android

2020-04-29 Thread Alex Tweedly via use-livecode
Livecloud is indeed from Canela Software - but there's no obvious link 
from their own website for it.


Go straight to livecloud.io to get the info about it.

It does require Indy or above LC license

Alex.

On 29/04/2020 15:06, Clarence Martin via use-livecode wrote:

You may want to explore LiveCloud. It is a cloud based database by Canela
Software that allows for both cloud and Local- to the device- database.
http://canelasoftware.com/
I am developing and testing for a while.

-Original Message-
From: use-livecode  On Behalf Of Skip
Kimpel via use-livecode
Sent: Wednesday, April 29, 2020 6:54 AM
To: How to use LiveCode 
Cc: Skip Kimpel 
Subject: Best relational database for IOS / Android

Good morning,

In your opinion, what is the best relational database to use for an IOS /
Android application?

Being a PC guy and always living in the Microsoft world, I always default to
SQL, however, with my latest discoveries of the complexities involved and
lack of support in LC I don't think that would be the best move at this
point.

Suggestions?

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Corona Virus app idea

2020-04-29 Thread William Prothero via use-livecode
Folks:
I had an idea for a Corona Virus app that Livecode is perfect for, and which 
could be coded up fairly quickly. I don’t have the time for doing it, but offer 
this idea just in case someone on the list wants a project for this.

The idea is to solve the problem that is now being created as folks who are 
severely impacted by the social lockdown policies being invoked in various 
countries. Here in the US, only “essential businesses” like grocery stores, 
hardware stores, post offices, etc are open, with the requirement that each 
person must stay 6 feet away from another, and wear a mask.

I am now observing increasing communications, on social media, advocating for 
open up more businesses so folks can get back to earning money to survive and 
get back to their normal lives. Retired folks generally have some kind of 
retirement pension or income, but younger ones work at jobs. As one of the 
retired group who is older and possibly more susceptible to the “death” side 
effect, I am fine with lockdown (bored maybe), but arguments are being made 
that many closed businesses (like restaurants) can be opened safely, with 
special distancing restrictions. This is in spite of the more informed 
policymakers advocating for caution.

So, here is my idea: 
Each business that wants to open would register on the app, possibly with the 
city administration able to approve. Maybe there would be a checklist of 
policies the business could check off. After registration, the business might 
get a “seal of approval” from the city (or responsible agency). After it is 
approved, each visitor (or the business staff) would “sign in” the visitor. 
This would be enforced by the business's staff. It would post the name of the 
business, customer contact info and time. This way, a database of visitors to 
all of the businesses (restaurants, haircut shops, beauty salons, etc) would be 
generated. A person who gets infected would also get an entry by ..?…someone 
(self/doctor/hospital?). The database would be available to city administration 
who could then do contact tracing. Obviously, this would require adoption by 
the city and hospital management. It’s a simple database entry project. I’d 
probably add some other features, like a checklist of current city 
requirements, best practices, etc.

Ok, yeah, this sounds like what Apple and Google are building. However, there 
is no attempt to detect all close contact persons using bluetooth (or 
whatever), with its privacy issues. But the businesses visited are identified, 
and this also would provide an incentive for them to be very careful. It’s a 
bit like a Yelp for Corona Virus. The app could be built quickly and get out as 
pressure to ease the lockdown restrictions builds. Businesses could get a 
“success score”. Visitors could do ratings.

This is such an easy app to build that a programming student could do it. The 
hardest part for me would be to get it into the Android and Apple stores, and 
also to promote it to the local pandemic “powers that be”. I’m retired and 
don’t want to take on a project of this size, but perhaps someone on the list 
would find it appealing.

Be Well,
Bill


William A. Prothero
https://earthlearningsolutions.org

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Spell Checker

2020-04-29 Thread Trevor DeVore via use-livecode
Hi folks,

FYI I've published a Github repo with a spell checker. The code is code
I've been developing for a spell checker replacement in apps I develop for
macOS and Windows. It uses NSSpellChecker on macOS and Hunspell on Windows.
If some kind soul wants to compile a Hunspell 1.6.2 .so library for Linux
the it would support Linux as well (I don't develop for Linux).

The url where you can go to learn about it, download it, or contribute to
it <—-! is here:

https://github.com/trevordevore/spell_checker

Instructions for using it in your LiveCode app are at the bottom of the
page.

The latest release, along with the LCE files for installing some extensions
that are required, can be found on the Releases page:

https://github.com/trevordevore/spell_checker/releases

For those adding the spell checker to a Levure application no need to
install the extensions. The repo is in Helper format and you can add the
folder to the Helpers folder in your app. Just make sure you are using the
newly released version 0.9.4 of the Levure framework in your app which
allows Helpers to define where .dll, .so, .dylibs, and the like should be
packaged up when building a standalone. Release notes for each version can
be found here:

https://github.com/trevordevore/levure/releases

P.S. I've updated my signature with links to my Github repos that relate to
LiveCode and LiveCode Builder. All of my public projects are under the MIT
license so enjoy!

-- 
Trevor DeVore
ScreenSteps - https://www.screensteps.com
Levure App Framework for LiveCode - https://github.com/trevordevore/levure/
LiveCode Repos -
https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos -
https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Google Drive or Dropbox integration

2020-04-29 Thread David Bovill via use-livecode
I’m looking to create some tools to automate / augment the work of volunteers 
working on the Sound Garden media archive we created for the radio station.

I want to create desktop and mobile apps I can distribute to volunteers as the 
project moves forwards.

At this early stage we have both Dropbox and Google drive storage - and I’m 
looking for the apps to integrate into the workflow ie read and write to the 
archive.

I’m wondering if anyone has experience with the Livecode libraries that do this 
- which is easier to code against for mobile and desktop? Anyone got a demo 
stack?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Best relational database for IOS / Android

2020-04-29 Thread doc hawk via use-livecode
Rick remanded,

> Nice!

Not just nice, but necessary for consistency—if I have a variable change which 
also causes two more to change, it is absolutely critical that either all three 
change, or that the whole thing fail.  You just can’t do that without 
begin/end, AFAIK, unless you have a followup that checks all three once all are 
done—and what if you lose power or otherwise crash before that happens?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode HTML5 and SQL

2020-04-29 Thread matthias rebbe via use-livecode
I was also thinking about using LC Server or PHP scripts, but if i understand 
it correctly then  "put URL" or "POST.. to URL" aren't  currently supported in 
the LC HTML5 engine.
Only "load URL" is supported and only for http / https.

Matthias


-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 29.04.2020 um 20:06 schrieb Devin Asay via use-livecode 
> :
> 
> Colin,
> 
> I haven’t tried it myself, but I would think you’d have to write an API layer 
> using LiveCode Server scripting. All of the MySQL reads and writes would take 
> place in your .lc scripts on LC Server. Then it would be simple, RESTful http 
> calls from your HTML5 app. Of course, this all depends upon whether the 
> internet libraries have been ported over to the HTML5 platform. LiveCode 
> Server—I’ve done lots. HTML5 deployment, almost none.
> 
> Hope this helps.
> 
> Devin
> 
> 
>> On Apr 29, 2020, at 9:49 AM, Colin Kelly via use-livecode 
>>  wrote:
>> 
>> Anyone got any insightful ways of READING/WRITING to a mySQL table using 
>> web-apps developed with Livecode HTML5?
>> 
>> 
>> 
>> Thanks
>> 
>> Col.
>> 
>> 
>> 
>> -- 
>> 
>> Colin Kelly
>> 
>> M 07951 920680
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Quick IDE question

2020-04-29 Thread Graham Samuel via use-livecode
Stone the crows, it worked!! Even the decorations came back, and the ability to 
drag the window - neither of which are obviously related to the rect or height 
of the stack, as far as I can see.

Thanks so much Martin. I wonder how just the Script Editor got so out of whack 
- but it’s just a theoretical wonder, as I am back to normal.

Thanks again.

> On 29 Apr 2020, at 15:35, Martin Koob via use-livecode 
>  wrote:
> 
> Hi Graham
> 
> Try this in the message box
> 
> set the rect of stack "revNewScriptEditor 1" to the screenrect; set the 
> height of stack "revNewScriptEditor 1" to 750
> 
> 
> 
> 
> Regards,
> 
> Martin Koob
> 
> 
> 
> 
> 
>> On Apr 29, 2020, at 9:11 AM, Graham Samuel via use-livecode 
>>  wrote:
>> 
>> Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time 
>> I open the Script Editor window, it overfills my screen, so I can’t see the 
>> bottom of the window. There are no decorations, so I can’t resize or 
>> minimise the window; and dragging the window by the title bar doesn’t work 
>> either. I’ve restarted both versions but no joy. Everything else seems to be 
>> working normally and the other LC windows have decorations.
>> 
>> I don’t believe I’ve ever seen this before. Does anyone know how I can get 
>> out of it?
>> 
>> Graham
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Three very simple questions

2020-04-29 Thread Graham Samuel via use-livecode
OK, I’ll bite - how d’ya do it?

Graham

> On 28 Apr 2020, at 22:28, dunbarx--- via use-livecode 
>  wrote:
> 
> The user guide?
> It certainly is searchable. I do it all the time.
> Craig
> 
> 
> -Original Message-
> From: Graham Samuel via use-livecode 
> To: How to use LiveCode 
> Cc: Graham Samuel 
> Sent: Tue, Apr 28, 2020 3:44 pm
> Subject: Re: Three very simple questions
> 
> Bill, I think you’re right about the Guide not being searchable. I was going 
> to point it out myself, but I began to think that I had used up my grumbling 
> allowance, or at least I had not much left and needed to use it for other 
> things.
> 
> Of course the Giude should be searchable!
> 
> Graham
> 
> Re grumbling - I have always been delighted by the way people on this list 
> come to each other’s aid. This ‘invisible college’ is a really essential part 
> of the LiveCode experience, I believe. I hope I say ‘thank you’ enough.
> 
> 
> 
>> On 26 Apr 2020, at 23:52, prothero--- via use-livecode 
>>  wrote:
>> 
>> Folks:
>> I think Graham is doing LiveCode a favor by pointing out some of the ways a 
>> newby (even though he isn’t) might get messed up when learning LiveCode. We 
>> all get used to various approaches and newbies (even tho Graham isn’t) alert 
>> us to impediments for that very vital population of potential or new users.
>> 
>> One thing that has bugged me is that when I click on the dictionary, I get a 
>> nice display of commands, etc, searchable. But when I click on the “Guide” 
>> tab, I get what looks like a very informative document. However, if I’m 
>> looking for a particular task and want to do a search, there is none. So, it 
>> seems to me like a very valuable newby document is crippled by the omission 
>> of a very basic feature.
>> 
>> Or have I just missed something?
>> 
>> Best,
>> Bill
>> 
>> William A. Prothero
>> Santa Barbara, CA. 93105
>> http://earthlearningsolutions.org/
>> 
>>> On Apr 26, 2020, at 12:23 PM, Mark Wieder via use-livecode 
>>>  wrote:
>>> 
>>> On 4/26/20 12:09 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
 "globals are evil"
 But we use  one array
 Global gConfigA
 and we stuff it with all manner of "things" including another arrays
 it turns about to quite useful
>>> 
>>> Yes, I do what you and Jacque do as a workaround, of course. I recently 
>>> implemented a feature management infrastructure the same way, given the 
>>> lack of globally available constants.
>>> 
>>> on preOpenStack
>>> global gFeatures
>>> put "feature1,feature2,feature3" into gFeatures
>>> end preOpenStack
>>> 
>>> ...some other stack
>>> 
>>> global gfeatures
>>> if "feature2" is among the items of gfeatures then
>>> ...
>>> 
>>> on closeStackRequest
>>> delete variable gFeatures
>>> end closestackRequest
>>> 
>>> great for A/B testing, rolling out new features without messing with 
>>> existing code, being able to roll back unwanted or not-working features 
>>> after beta testing... and would be so much cleaner if we didn't have to 
>>> resort to global variables and remember to put a reference to them in each 
>>> place they're referenced...
>>> 
>>> -- 
>>> Mark Wieder
>>> ahsoftw...@gmail.com
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wildcard? replaceText, offset?

2020-04-29 Thread Ben Rubinstein via use-livecode
Not sure what 'previous post' referred to. Reg ex "[0-9]+" (or equivalently 
"\d+") would match one or more integers.


Provided this is the first/only instance of the pattern, I would have thought 
that regex does provide the neatest solution, e.g.:


put "(" & iNewNumber ")" into tReplacement
put replaceText(tOldString , "\(\d+\)", tReplacement) into tNewString


On 26/04/2020 20:15, dunbarx--- via use-livecode wrote:

Pay no attention to the previous post, which only dealt with a single integer. 
Sloppy.
THIS old fashioned method works, though:
on mouseUpput offset("(",yourString) into startCharput offset(")", yourString) 
into endCharput random(999) into char (startChar + 1) to (endChar -1) of yourStringend mouseUp

Craig

-Original Message-
From: doc hawk via use-livecode 
To: How to use LiveCode 
Cc: doc hawk 
Sent: Sun, Apr 26, 2020 2:41 pm
Subject: Re: Wildcard? replaceText, offset?


On Apr 26, 2020, at 11:24 AM, Rick reasoned


In the middle-end part of the string I have “(x)” where x represents some 
integer.
it could be (4) or (10) or (5) etc.



If you’re certain that this is the only, or even the first, integer, a regular 
expression search and replace or [0-9]+  would  do the trick.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode