Re: Feature request: merge function!

2019-01-18 Thread hh via use-livecode
Until parametrization is implemented for LC 9 one could use the following generalization of Andre's method for David. This is still fast enough because replace is so fast in LC. David would call merge2(string, "{{", "}}"). To make merge xml safe use e.g. merge2(string,,,"<1>","<2>") Of course

Re: Feature request: merge function!

2019-01-18 Thread Mark Waddingham via use-livecode
On 2019-01-18 09:01, David Bovill via use-livecode wrote: I would love to be able to change the characters that merge uses - especially from “[[..]]” to “{{...}}”. Quite a lot of templating uses curly brackets - and I especially want to use it for wiki style templates which can’t use square

Re: Feature request: merge function!

2019-01-18 Thread hh via use-livecode
Until parametrization is implemented for LC 9 one could use the following generalization of Andre's method for David. This is still fast enough because replace is so fast in LC. David would call merge2(string, "{{", "}}"). To make merge xml safe use e.g. merge2(string,,,"<1>","<2>") Of course

Re: Feature request: merge function!

2019-01-18 Thread David Bovill via use-livecode
That would be great Mark :) Andre the general function I use for munging text uses regular expressions as my head exploded long ago with too many custom string munging functions :) *command* fedwiki_MergeCurlyArray @templateArray, itemID, curlyArray > *put* fedwiki_GetStoryItemText

Re: HTMLTEXT of a Browser Widget in Properties Inspector?

2019-01-18 Thread hh via use-livecode
> BR wrote: > and you have a "flicker" as the "cache" htmltext seems to load > and then the my code set it. > > So, now the question is... is the htmltext of browser widget > a saved property? I already answered both in my last post! Especially: = To avoid flicker hide the widget until it is

Re: Script Editor Slow on Windows

2019-01-18 Thread Andre Alves Garzia via use-livecode
Ralph, The IDE is so bad under windows that sometimes I dust off my 2013 macbook air just to use it there for some hours and fix whatever I need to fix in my projects. You're right, there is no recipe, it is "degradation over time" and time in here is measured in minutes and few hours. This

Re: Feature request: merge function!

2019-01-18 Thread Andre Alves Garzia via use-livecode
eheheheheh let me throw this hack in here and run function davidsMerge pText   replace "[[" with "[safe[" in pText   replace "]]" with "]safe]" in pText   replace "{{" with "[[" in pText   replace "}}" with "]]" in pText   get the merge of pText   replace "[safe[" with "[[" in it  

Re: The merge function is awesome!

2019-01-18 Thread Mark Waddingham via use-livecode
On 2019-01-18 06:48, Geoff Canyon via use-livecode wrote: I was in the same position with merge(). If you haven't seen it already, format() has some pretty amazing capabilities as well. To answer your question about escaping - yes there is: [[[]] -> [ [[]]] -> ] Also the merge function

The merge function is redundant?

2019-01-18 Thread kee nethery via use-livecode
I’m confused. Can someone explain why merge function exists when the put function works just as well? merge( [[ 1 + 2 ]] = 3) vs put 1 + 2 && “= 3” What is it that merge can do that a put cannot do? Just asking because I don’t want LiveCode to end up like Perl where there are so many

Re: Script Editor Slow on Windows

2019-01-18 Thread JJS via use-livecode
i don't have does issues on my win10 and lc902 i added .rev and .livecode to be excluded in Windows Defecnder and added the livecode.exe to be excluded. the thing i do see is that the line nr's in the scripteditor sometimes seem to stall while i scroll up or down the script. switching to

Re: Multiple regression in LiveCode?

2019-01-18 Thread Richard Gaskin via use-livecode
DAVID Epstein wrote: > Has anyone written a LiveCode function that will take a table of 2 or > more independent variables and 1 dependent variable, and return > coefficients, intercept, and standard errors for a multiple > regression? There might be something in the old joneslib.mc library:

Re: The merge function is redundant?

2019-01-18 Thread Geoff Canyon via use-livecode
There's some overlap, but merge has (at least) one feature that put doesn't: the ability to run code within its statement. A simple example: put merge("The coin came up .") The equivalent might be: put "The coin came up" && item random(2) of "heads,tails" & "." But consider this:

Re: The merge function is redundant?

2019-01-18 Thread J. Landman Gay via use-livecode
On 1/18/19 12:33 PM, kee nethery via use-livecode wrote: I’m confused. Can someone explain why merge function exists when the put function works just as well? merge( [[ 1 + 2 ]] = 3) vs put 1 + 2 && “= 3” What is it that merge can do that a put cannot do? For me, it's convenience,

Re: The merge function is redundant?

2019-01-18 Thread Richard Gaskin via use-livecode
kee nethery wrote: > I’m confused. Can someone explain why merge function exists when the > put function works just as well? > > merge( [[ 1 + 2 ]] = 3) > vs > put 1 + 2 && “= 3” > > What is it that merge can do that a put cannot do? Just asking because > I don’t want LiveCode to end up like

Re: The merge function is awesome!

2019-01-18 Thread Geoff Canyon via use-livecode
On Fri, Jan 18, 2019 at 3:23 AM Mark Waddingham via use-livecode < use-livecode@lists.runrev.com> wrote: > On 2019-01-18 06:48, Geoff Canyon via use-livecode wrote: > > I was in the same position with merge(). If you haven't seen it > > already, > > format() has some pretty amazing capabilities

Re: The merge function is redundant?

2019-01-18 Thread prothero--- via use-livecode
Folks, I’ve been following this discussion, barely. I don’t use merge, but when I need to form a command from several variables, I create the command as a text string and use do to execute it. So, when I look it up in the dictionary, I see a fairly simplistic description with nothing

Re: Script Editor Slow on Windows

2019-01-18 Thread Matthias Rebbe via use-livecode
Matthias Rebbe free tools for Livecoders: https://instamaker.dermattes.de https://winsignhelper.dermattes.de > > the thing i do see is that the line nr's in the scripteditor sometimes seem > to stall while i scroll up or

Re: The merge function is redundant?

2019-01-18 Thread hh via use-livecode
> Kee N. wrote: > I’m confused. Can someone explain why merge function exists when > the put function works just as well? > merge([[ 1 + 2 ]] = 3) vs put 1 + 2 && “= 3” merge([[ 1 + 2 ]] = 3) produces a script error, this should read merge("[[ 1 + 2 ]] = 3"). Merge is the one and only function

Re: Script Editor Slow on Windows

2019-01-18 Thread JJS via use-livecode
haha did i say does? i mean thosea well almost wrote the dutch pronouncing Op 18-1-2019 om 20:07 schreef JJS via use-livecode: i don't have does issues on my win10 and lc902 i added .rev and .livecode to be excluded in Windows Defecnder and added the livecode.exe to be excluded. the

Multiple regression in LiveCode?

2019-01-18 Thread DAVID Epstein via use-livecode
Has anyone written a LiveCode function that will take a table of 2 or more independent variables and 1 dependent variable, and return coefficients, intercept, and standard errors for a multiple regression? David Epstein ___ use-livecode mailing list

Re: Script Editor Slow on Windows

2019-01-18 Thread Curry Kenworthy via use-livecode
I'll pipe in again, possibly triggering one or two souls again but that's OK if it will help others. :) So, I really feel for the people who are still having big problems using SE and IDE. I've been there and felt that pain; it's no fun. LC without code editing is quite restrictive. But

OT: Linus on C vs C++

2019-01-18 Thread Sannyasin Brahmanathaswami via use-livecode
https://www.quora.com/Linus-Torvalds-thinks-Java-and-C-are-horrible-programming-languages-So-which-language-does-he-recommend-for-programming ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: OT: Linus on C vs C++

2019-01-18 Thread Mark Wieder via use-livecode
On 1/18/19 5:54 PM, Sannyasin Brahmanathaswami via use-livecode wrote: https://www.quora.com/Linus-Torvalds-thinks-Java-and-C-are-horrible-programming-languages-So-which-language-does-he-recommend-for-programming ...one of those rare cases where I agree with everything Linus says. -- Mark

Livecode Dictionary

2019-01-18 Thread Simon Knight via use-livecode
Hi all, I have just read about two “issues” and both would be resolved or at least helped with a more detailed dictionary entry. Now in the dim distant past the RunRev dictionary use to allow humble users to add comments and examples which I for one found useful. Does anyone know why this

Re: The merge function is redundant?

2019-01-18 Thread Andre Alves Garzia via use-livecode
Kee, I can spend hours on why merge is useful and underappreciated but I will boil it down to one use case only: templates. Merge is crucial if you're assembling some textual template that is not LiveCode but want to generate parts of it in LiveCode. For example, the first step in

Re: The merge function is redundant?

2019-01-18 Thread prothero--- via use-livecode
Folks: I’m looking at Jan Schenkel’s posting on the “Power of Merge”. I can’t make any of the examples work. Obviously, there is some code or some very basic thing that everybody (but me) knows, but ?? Please illuminate me. I see the placeholder in some of the lessons. The dictionary is no

Re: The merge function is redundant?

2019-01-18 Thread kee nethery via use-livecode
Thanks everyone. Templates makes sense. Just for grins, perhaps the dictionary entry could be enhanced with Jacque’s example. It makes sense to me now. Kee ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to

Re: Feature request: merge function!

2019-01-18 Thread Richard Gaskin via use-livecode
David Bovill wrote: > I would love to be able to change the characters that merge uses - > especially from “[[..]]” to “{{...}}”. > > Quite a lot of templating uses curly brackets - and I especially want > to use it for wiki style templates which can’t use square brackets as > they are used for

Re: Feature request: merge function!

2019-01-18 Thread Keith Clarke via use-livecode
I don’t know the setting but might a line or two of preprocessing allow LC to replace the (specific) strings in the template with curly brackets into ones with square brackets for processing? Best, Keith > On 18 Jan 2019, at 09:33, Richard Gaskin via use-livecode > wrote: > > David Bovill

Feature request: merge function!

2019-01-18 Thread David Bovill via use-livecode
I would love to be able to change the characters that merge uses - especially from “[[..]]” to “{{...}}”. Quite a lot of templating uses curly brackets - and I especially want to use it for wiki style templates which can’t use square brackets as they are used for internal links. Not sure of the