Re: functions may be called as commands in IDE, but not in standalone

2015-09-03 Thread Dr. Hawkins
On Wed, Sep 2, 2015 at 11:19 AM, Mark Wieder wrote: > Dr. Hawkins writes: > > > Having solved it for my own, I'm not going to worry about this any > further > > if it can't bite people now . . . > > My guess, without having looked at your stack, is that

Editing Large Scripts is Faster

2015-09-03 Thread Jana Doughty
Hi LiveCode Community, We have an added perk to LiveCode 8 DP 4 for you (in case HTML5 wasn't exciting enough already!). You can read about it here: https://livecode.com/editing-large-scripts-faster/ Enjoy! Jana ___ use-livecode mailing list

Re: Editing Large Scripts is Faster

2015-09-03 Thread Mark Wieder
Jana Doughty writes: > We have an added perk to LiveCode 8 DP 4 for you (in case HTML5 wasn't > exciting enough already!). You can read about it here: > > https://livecode.com/editing-large-scripts-faster/ Great! And thanks to Charles for the patch. Now how about applying

Re: Goodbye stsMLXEditor

2015-09-03 Thread Richard Gaskin
Peter Haworth wrote: > On Thu, Sep 3, 2015 at 9:13 AM Richard Gaskin wrote: > >> Peter Haworth wrote: >>> >>> The spell check algorithm catches that. >> >> Got one handy? > > Yep. I guess it's not really a spell checker. It compares two words > to figure out how close they are in spelling so I

Re: Goodbye stsMLXEditor

2015-09-03 Thread Peter Haworth
There's a statement at the top of the free stuff page that is my feeble attempt to let everyone know that the code is available for them to use in any form they wish. It could certainly be improved. Does it need to be in the code? It seems really hard to give something away these days. On Thu,

Re: Goodbye stsMLXEditor

2015-09-03 Thread Richard Gaskin
Thanks. I see it now. I'm accustomed to finding licensing info within the download, so it didn't occur to me to go back to the download page to look for it. I don't suppose it *needs* to be in the code or the download necessarily. Anyone wanting to use the code can go back and download

Minimized/Iconified stack bug in LC676?

2015-09-03 Thread Paul Dupuis
I think I have discovered a bug in LC676 that if you (in a script) close a minimized/iconified stack, the rect gets saved as -32000,-32000,.., so that if you then open the stack (in a the same or another script) the stack is not visible. Under Windows, it appears minimized on the toolbar, but its

Re: Compare numeric strings with leading zeros

2015-09-03 Thread J. Landman Gay
On 9/3/2015 2:28 AM, Thierry Douez wrote: You can use build-in functions which manipulate strings. Please, try this one: on mouseUp local userTyping = 5 local myVeryStrongPassword = "005" if matchText( userTyping, myVeryStrongPassword) then answer "Great!" else

Re: Char Set on Custom Properties

2015-09-03 Thread J. Landman Gay
Returning to this topic...we are in the process of creating new stacks in LC 7 while still running older LC 6 stacks with the same app. Stacks have custom properties containing text created on a Mac, and my app uses MacToISO() to display the text when running on Windows. Some of the LC 6

Re: Editing Large Scripts is Faster

2015-09-03 Thread Richard Gaskin
Thanks for the clarification. If someone in the community wanted to help out my making adding this to the v7 IDE so it could help attract current customers, what would be the procedure for that? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile,

Re: Editing Large Scripts is Faster

2015-09-03 Thread Ali Lloyd
This wouldn't currently be possible, I don't think. Backporting the scriptified behaviors involves a binary stack change, as does adding the filter. On Thu, Sep 3, 2015 at 7:33 PM Richard Gaskin wrote: > Thanks for the clarification. If someone in the community

No Math Skills? No Problem...

2015-09-03 Thread Alejandro Tejada
From Slashdot post: Olga Khazan writes in The Atlantic that learning to program involves a lot of Googling, logic, and trial-and-error—but almost nothing beyond fourth-grade arithmetic. Victoria Fine explains how she taught herself how to code despite hating math. Her secret? Lots and lots of

RE: Compare numeric strings with leading zeros

2015-09-03 Thread Ralph DiMola
Agreed + 1. Although the "x" or checking the length will work it seems that matchText is a lot cleaner and easier to read in the future. Thank All! Thanks Thierry... matchText it is! Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message-

Re: Goodbye stsMLXEditor

2015-09-03 Thread Richard Gaskin
Peter Haworth wrote: > On Wed, Sep 2, 2015, 7:38 PM Mark Wiederwrote: > >> The tl;dr is that by letting an algorithm declare variables instead >> of doing the work of finding the missing ones manually you're >> actually compounding the problem. It makes it harder to spot the >> accidental errors

Re: Editing Large Scripts is Faster

2015-09-03 Thread Richard Gaskin
Mark Wieder wrote: Jana Doughty writes: We have an added perk to LiveCode 8 DP 4 for you (in case HTML5 wasn't exciting enough already!). You can read about it here: https://livecode.com/editing-large-scripts-faster/ Great! And thanks to Charles for the patch. Now how about applying one

Re: Editing Large Scripts is Faster

2015-09-03 Thread Ali Lloyd
That requires a backport, as the script editor in 8 has scriptified behaviors and a widget for the variable viewer. On Thu, Sep 3, 2015 at 6:09 PM Richard Gaskin wrote: > Mark Wieder wrote: > > Jana Doughty writes: > > > >> We have an added perk to LiveCode 8 DP 4

Re: Goodbye stsMLXEditor

2015-09-03 Thread Peter Haworth
Yep. I guess it's not really a spell checker. It compares two words to figure out how close they are in spelling so I suppose a spell checker might use it to suggest correct spellings from a dictionary having detected a misspelled word. Download setlocals from

Re: No Math Skills? No Problem...

2015-09-03 Thread dunbarx
It sounds like a simple application that requires only basic math would be best. The calculator demo is good for this, in the sense that it requires no math at all, only that math functionality be authored: put fld 1 + fld 2 into fld 3. From here I would make a game of it If fld 1 > fld 2

Re: Compare numeric strings with leading zeros

2015-09-03 Thread Lyn Teyla
Thierry Douez wrote: > on mouseUp > local userTyping = 5 > local myVeryStrongPassword = "005" > if matchText( userTyping, myVeryStrongPassword) then > answer "Great!" > else > answer "Too bad :( try again.." > put "005" into userTyping > if matchText( userTyping,

Re: No Math Skills? No Problem...

2015-09-03 Thread Mark Wieder
Alejandro Tejada writes: > How far could a person learn this platform, LiveCode, just using these > skills: Googling, logic and trial-and-error? Ha! Gotta love slashdot comments... 'This is why so much poor software exists in the world. I can only imagine what nightmare code

RE: Compare numeric strings with leading zeros

2015-09-03 Thread Ralph DiMola
Ah, I did not have a chance to read the docs about matchText yet. This why the uselist is one of the best lists around. I was trying to avoid another user function but it look like stringsAreEqual is going in my master library. Thanks Lyn! Ralph DiMola IT Director Evergreen Information

RE: Compare numeric strings with leading zeros

2015-09-03 Thread FlexibleLearning.com
I would simply force a string comparison... return num1 & space=num2 & space Hugh Senior FLCo > From: "Ralph DiMola" > > Feeling pretty clueless here but... > > I need ("5" = "005") to be false. This is for password validation. > > Ralph DiMola

Re: Compare numeric strings with leading zeros

2015-09-03 Thread Thierry Douez
You can use build-in functions which manipulate strings. Please, try this one: on mouseUp local userTyping = 5 local myVeryStrongPassword = "005" if matchText( userTyping, myVeryStrongPassword) then answer "Great!" else answer "Too bad :( try again.." put "005" into

Re: How saucy is Open Source

2015-09-03 Thread Sebastien Nouat
On 03/09/2015 02:36, Roger Eller wrote: Sure Ali, have a look at bug #15814. I even did the leg work to find out at which version it broke. http://quality.runrev.com/show_bug.cgi?id=15814 Hi Roger, That is on the TO-DO list for 6.7.8 (and we have a culprit update already, so we know where

Widget Editor

2015-09-03 Thread Paul Richards
I have just watched this again https://www.youtube.com/watch?v=yn-l2-GHos8 , where a Widget Editor is shown off (11:30)... Is this editor still in the making and will it eventually be released, or are we going to be encouraged to use an external editor?

HTML5 "get URL"

2015-09-03 Thread Rolf Kocherhans
I am experimenting with the „get URL“ command on a HTML5 WebApp. I can’t get it to work at all :-( The get URL command can be used in 3 ways with file - ftp or http urls, I guess the HTML5 get URL command is not used for ftp or http because the relay on LibURL (just a guess). Therefore I

RE: Compare numeric strings with leading zeros

2015-09-03 Thread FlexibleLearning.com
Or even just EMPTY converts to a string... return num1 & ""=num2 & "" Hugh Senior FLCo > From: "Ralph DiMola" > > Feeling pretty clueless here but... > > I need ("5" = "005") to be false. This is for password validation. > > Ralph DiMola

Re: [OT] Atom Text Editor for Script Editiing - First Impressions

2015-09-03 Thread Ralf Bitter
> On 03.09.2015, at 02:06, Kay C Lan wrote: > > Ralf, > > you say you restarted Atom and the snippet was there: Where? There are two > locations for snippets in Atom as far as I'm aware: > > 1) Atom menu -> Open Your Snippets >This is empty for me because I

Re: Compare numeric strings with leading zeros

2015-09-03 Thread Thierry Douez
Hi, > Ah, Well, nothing very dangerous here :) >> if matchText( userTyping, myVeryStrongPassword) then ... This was a direct answer to this thread: "compare numeric strings with leading zeros" ! > I would caution against using matchText for this purpose, > because the

Re: Editing Large Scripts is Faster

2015-09-03 Thread Charles Warwick
> On 4 Sep 2015, at 12:25 pm, Mark Wieder wrote: > > On 09/03/2015 10:52 AM, Ali Lloyd wrote: > >> That requires a backport, as the script editor in 8 has scriptified >> behaviors and a widget for the variable viewer. > > I must be missing something. Charles detailed

Re: LiveCode fix for \\UNC paths coming...

2015-09-03 Thread Roger Eller
That's great news! Thank you. On Sep 3, 2015 4:33 AM, "Sebastien Nouat" wrote: > On 03/09/2015 02:36, Roger Eller wrote: > >> Sure Ali, have a look at bug #15814. I even did the leg work to find out >> at which version it broke. >> >>

Re: Compare numeric strings with leading zeros

2015-09-03 Thread Thierry Douez
> >> Ok, now I'm waiting for what I've missed... > > Your revised example was missing a "^" at the beginning and a "$" at the end. > >put "^\Q^5$\E$" into myVeryStrongPassword > > Lyn > Good catch :) Regards, Thierry ___ use-livecode mailing list

Re: Compare numeric strings with leading zeros

2015-09-03 Thread Lyn Teyla
Thierry Douez wrote: > put "\Q^5$\E" into myVeryStrongPassword > if matchText( userTyping, myVeryStrongPassword ) then ... Here is indeed an example of the danger involved with the use of regular expressions. It can be easy to miss things at times, which is why I simply cautioned against

Re: Compare numeric strings with leading zeros

2015-09-03 Thread Jerry Jensen
What’s wrong with simply: function stringsAreEqual p1, p2 return (p1 & "z") = (p2 & "z") end stringsAreEqual As Terry Judd and Mark Wieder suggested yesterday? .Jerry > On Sep 3, 2015, at 8:56 PM, Thierry Douez wrote: > > Hi, > >> Ah, > > Well, nothing very

Re: Editing Large Scripts is Faster

2015-09-03 Thread Mark Wieder
On 09/03/2015 10:52 AM, Ali Lloyd wrote: That requires a backport, as the script editor in 8 has scriptified behaviors and a widget for the variable viewer. I must be missing something. Charles detailed the changes that need to be made to the revscripteditor.rev script for LC7. Why is that

No Math Skills? No Problem...

2015-09-03 Thread Alejandro Tejada
on Fri Sep 4 Mark Wieder writes: > Ha! Gotta love slashdot comments... > 'This is why so much poor software exists in the world. > I can only imagine what nightmare code is being generated > by such efforts. Yes, anyone can code, just as anyone > can build a house. Whether or not the house >