Re: 8.1.1 can't get URL? (somewhat urgent)

2016-11-09 Thread Charles Warwick

What happens if you type:  put ulExtIsBlocked() into the message box?

Maybe something is unloading the tsNetLibUrl library.  Can you confirm 
that stack is loaded?


On 10/11/2016 12:57 PM, Sannyasin Brahmanathaswami wrote:

Ouch! after rebooting and running just for a few minutes suddenly now again

put url https://www.himalayanacademy.com/ping.txt

result:

Message execution error:
Error description: Function: error in function handler
Hint: ulExtIsBlocked

!

Something is triggering the libURL or TSNet to choke

BR

let me try 8.1.2 RC 1

  


On 11/9/16, 4:51 PM, "use-livecode on behalf of Kay C Lan" 
 wrote:

 Glad you got it working.
 
 Yes, unfortunately Restarting LC is a reflex reaction now.
 
 On Thu, Nov 10, 2016 at 10:49 AM, Sannyasin Brahmanathaswami

  wrote:
 >Yes, it works in a browser.
 >
 >are you using community, Indy or Business?
 >
 >I have a business licensed version of 8.1.1  I wonder if that is the 
issue?
 >
 >Oh wait… never mind… I rebooted LC and now it works..
 >
 >this goes the on going problem of the IDE slowly "degrading" over time… 
all kinds of bad stuff starts happening if I don’t reboot it periodically.
 >
 >
 >Svasti Astu, Be Well
 >Brahmanathaswami
 >
 >www.himalayanacademy.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

Re: 8.1.1 can't get URL? (somewhat urgent)

2016-11-09 Thread Sannyasin Brahmanathaswami
Ouch! after rebooting and running just for a few minutes suddenly now again

put url https://www.himalayanacademy.com/ping.txt

result:

Message execution error:
Error description: Function: error in function handler
Hint: ulExtIsBlocked

!

Something is triggering the libURL or TSNet to choke

BR

let me try 8.1.2 RC 1

 

On 11/9/16, 4:51 PM, "use-livecode on behalf of Kay C Lan" 
 
wrote:

Glad you got it working.

Yes, unfortunately Restarting LC is a reflex reaction now.

On Thu, Nov 10, 2016 at 10:49 AM, Sannyasin Brahmanathaswami
 wrote:
>Yes, it works in a browser.
>
>are you using community, Indy or Business?
>
>I have a business licensed version of 8.1.1  I wonder if that is the issue?
>
>Oh wait… never mind… I rebooted LC and now it works..
>
>this goes the on going problem of the IDE slowly "degrading" over time… 
all kinds of bad stuff starts happening if I don’t reboot it periodically.
>
>
>Svasti Astu, Be Well
>Brahmanathaswami
>
>www.himalayanacademy.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

Re: 8.1.1 can't get URL? (somewhat urgent)

2016-11-09 Thread Kay C Lan
Glad you got it working.

Yes, unfortunately Restarting LC is a reflex reaction now.

On Thu, Nov 10, 2016 at 10:49 AM, Sannyasin Brahmanathaswami
 wrote:
> Yes, it works in a browser.
>
> are you using community, Indy or Business?
>
> I have a business licensed version of 8.1.1  I wonder if that is the issue?
>
> Oh wait… never mind… I rebooted LC and now it works..
>
> this goes the on going problem of the IDE slowly "degrading" over time… all 
> kinds of bad stuff starts happening if I don’t reboot it periodically.
>
>
> Svasti Astu, Be Well
> Brahmanathaswami
>
> www.himalayanacademy.com
>
>
>
> On 11/9/16, 4:39 PM, "use-livecode on behalf of Kay C Lan" 
>  
> wrote:
>
> I get:
>
> true
>
> OS X 10.11.6 LG 8.1.1 GM
>
> Have you tried in your browser?
>
> On Thu, Nov 10, 2016 at 10:35 AM, Sannyasin Brahmanathaswami
>  wrote:
> >8.1.1 GM
> >
> >put url "https://www.himalayanacademy.com/ping.txt;
> >
> >is returning:
> >
> >Message execution error:
> >Error description: Function: error in function handler
> >Hint: ulExtIsBlocked
> >
> >what's happening?
>
> ___
> 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: 8.1.1 can't get URL? (somewhat urgent)

2016-11-09 Thread Sannyasin Brahmanathaswami
Yes, it works in a browser.

are you using community, Indy or Business?

I have a business licensed version of 8.1.1  I wonder if that is the issue?

Oh wait… never mind… I rebooted LC and now it works.. 

this goes the on going problem of the IDE slowly "degrading" over time… all 
kinds of bad stuff starts happening if I don’t reboot it periodically.


Svasti Astu, Be Well 
Brahmanathaswami

www.himalayanacademy.com

 

On 11/9/16, 4:39 PM, "use-livecode on behalf of Kay C Lan" 
 
wrote:

I get:

true

OS X 10.11.6 LG 8.1.1 GM

Have you tried in your browser?

On Thu, Nov 10, 2016 at 10:35 AM, Sannyasin Brahmanathaswami
 wrote:
>8.1.1 GM
>
>put url "https://www.himalayanacademy.com/ping.txt;
>
>is returning:
>
>Message execution error:
>Error description: Function: error in function handler
>Hint: ulExtIsBlocked
>
>what's happening?

___
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: 8.1.1 can't get URL? (somewhat urgent)

2016-11-09 Thread Kay C Lan
I get:

true

OS X 10.11.6 LG 8.1.1 GM

Have you tried in your browser?

On Thu, Nov 10, 2016 at 10:35 AM, Sannyasin Brahmanathaswami
 wrote:
> 8.1.1 GM
>
> put url "https://www.himalayanacademy.com/ping.txt;
>
> is returning:
>
> Message execution error:
> Error description: Function: error in function handler
> Hint: ulExtIsBlocked
>
> what's happening?
> ___
> 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


8.1.1 can't get URL? (somewhat urgent)

2016-11-09 Thread Sannyasin Brahmanathaswami
8.1.1 GM

put url "https://www.himalayanacademy.com/ping.txt;

is returning:

Message execution error:
Error description: Function: error in function handler
Hint: ulExtIsBlocked

what's happening?
___
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


Subject: Re: Subject: Re: What speed advantage comes from a private handler?

2016-11-09 Thread James Hale
> 
> Oh! I thought private handlers were ones only accessible by handlers in the 
> same script

They are. Perhaps my expression was clumsy. 

James

___
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: 8 datagrid text properties

2016-11-09 Thread Sri
Hi Mike:

Have you consulted the DataGrid help document (or dictionary)?

set the dgProp["Property Name"] of group "DataGrid Name" to thePropertyValue

where you have a slew of properties you can set:
"header height"
"header margins"
"header text color"
"header text font"
"header text style"
"header text size"
"header background color"
"header background hilite color"
etc.

Similarly to set the properties of body text, you have
"text color"
"text font"
"text style"
"text size"
"hilited text color"
etc.

I tested. They work in LC8.

Regards,
Sri





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/8-datagrid-text-properties-tp4710203p4710247.html
Sent from the Revolution - User mailing list archive at Nabble.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


Pattern Matching in Livecode

2016-11-09 Thread Alejandro Tejada
Just noticed that Peter and Hermann
posted handlers too.

I will update the stack and post a new
version in a few minutes. :D

Al

___
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


Pattern Matching in Livecode

2016-11-09 Thread Alejandro Tejada
Hi Craig,

Your clever idea of reverting search terms works great too.
Many Thanks for answering my request! :D

I have posted a new stack and a screenshot
at the forum thread:
http://forums.livecode.com/viewtopic.php?f=7=28288

on mouseUp
   put fld id 1008 into WL -- 12 words
   put fld id 1014 into SC -- 1080 combinations

   repeat for each line Q in SC
  if lineoffset(word 1 of Q,WL) <> 0 and \
lineoffset(word 2 of Q,WL) <> 0 and \
lineoffset(word 3 of Q,WL) <> 0
  then
 put word 1 to 3 of Q & return after tCombinations
  end if
   end repeat

   if the number of words of tCombinations > 2
   then
  -- delete last char of tCombinations -- a CR character
  sort numeric descending tCombinations
  put word 1 to -1 of tCombinations into fld id 1025
   else
  put "No matching set found" into fld id 1025
   end if

end mouseUp

Still, I am curious to learn if regex and arrays operations
could produce the same results but faster.

Have a nice week!

Al

___
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: [ANN] Release 8.1.2 RC-1

2016-11-09 Thread Mike Kerner
Well, maybe I won't move up, just yet.

On Wed, Nov 9, 2016 at 1:24 PM, Ralph DiMola 
wrote:

> >Andy P wrote:
> >Great work, lots of bugs squashed!
>
> +1
>
> I found another IDE crash when doing an "Open Card" on Win 10.
>
> http://quality.livecode.com/show_bug.cgi?id=18812
>
> 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 AndyP
> Sent: Wednesday, November 09, 2016 12:00 PM
> To: use-revolut...@lists.runrev.com
> Subject: Re: [ANN] Release 8.1.2 RC-1
>
> Great work, lots of bugs squashed!
>
> unfortunately a new serious bug has emerged.
>
> using Cut on an object always crashes the IDE >Win 10
>
> http://quality.livecode.com/show_bug.cgi?id=18810
> 
>
>
>
>
>
> -
> Andy Piddock
>
>
> My software never has bugs. It just develops random features.
>
> Copy the new cloud space, get your free 15GB space now:
> Get Copy
>
>
> Script editor Themer for LC http://2108.co.uk
>
> PointandSee is a FREE simple but full featured under cursor colour picker /
> finder.
> http://www.pointandsee.co.uk  - made with LiveCode
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/ANN-
> Release-8-1-2-RC-1-tp4710
> 229p4710240.html
> Sent from the Revolution - User mailing list archive at Nabble.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
>



-- 
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: [ANN] Release 8.1.2 RC-1

2016-11-09 Thread Ralph DiMola
>Andy P wrote:
>Great work, lots of bugs squashed!

+1

I found another IDE crash when doing an "Open Card" on Win 10.

http://quality.livecode.com/show_bug.cgi?id=18812

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 AndyP
Sent: Wednesday, November 09, 2016 12:00 PM
To: use-revolut...@lists.runrev.com
Subject: Re: [ANN] Release 8.1.2 RC-1

Great work, lots of bugs squashed!

unfortunately a new serious bug has emerged.

using Cut on an object always crashes the IDE >Win 10

http://quality.livecode.com/show_bug.cgi?id=18810
  





-
Andy Piddock 


My software never has bugs. It just develops random features. 

Copy the new cloud space, get your free 15GB space now:
Get Copy 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker /
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710
229p4710240.html
Sent from the Revolution - User mailing list archive at Nabble.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


Re: [ANN] Release 8.1.2 RC-1

2016-11-09 Thread Paul Hibbert
Same problem on Mac OSX 10.12.1 too, so I have added to your bug report.

Paul

> On Nov 9, 2016, at 8:59 AM, AndyP  wrote:
> 
> Great work, lots of bugs squashed!
> 
> unfortunately a new serious bug has emerged.
> 
> using Cut on an object always crashes the IDE >Win 10
> 
> http://quality.livecode.com/show_bug.cgi?id=18810
>   
> 
> 
> 
> 
> 
> -
> Andy Piddock 
> 
> 
> My software never has bugs. It just develops random features. 
> 
> Copy the new cloud space, get your free 15GB space now:
> Get Copy 
> 
> 
> Script editor Themer for LC http://2108.co.uk  
> 
> PointandSee is a FREE simple but full featured under cursor colour picker / 
> finder.
> http://www.pointandsee.co.uk  - made with LiveCode
> --
> View this message in context: 
> http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710229p4710240.html
> Sent from the Revolution - User mailing list archive at Nabble.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


RE: Duplicating a card in v8

2016-11-09 Thread Ralph DiMola
J,

Thanks! That's a sweet workaround but is so easy that it's now in my basket of 
command line thingies that will bypasses mouse clicks. I filed bug report 18811.

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 
J. Landman Gay
Sent: Tuesday, November 08, 2016 1:41 PM
To: How to use LiveCode
Subject: Re: property inspector lock

The easiest way, without a menu item, is from the message box: "clone this 
card".

Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On November 8, 2016 11:36:12 AM Marc Siskin  wrote:

> Ralph,
>
> Does typing “Copy this card to this stack” work in the message box?
>
> Marc
> On Nov 8, 2016, at 12:33 PM, Ralph DiMola 
> > wrote:
>
> How does one duplicate a card in v8? I can't seem to select a card in 
> the IDE. "duplicate card" is no longer displayed. I guess this have 
> been replaced by the "duplicate" text. If I select the card in the 
> property inspector the copy and duplicate edit options are grayed out. 
> Also after selecting the card in the property inspector the click on 
> the code button the stack script not the card script is opened. What 
> am I missing here? How do I select a card?
>
> Thanks
>
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
>
>
> ___
> 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
>
> ---
> Marc Siskin
> Manager, Modern Language Resource Center Carnegie Mellon University 
> msis...@andrew.cmu.edu
>
>
>
> ___
> 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: [ANN] Release 8.1.2 RC-1

2016-11-09 Thread AndyP
Great work, lots of bugs squashed!

unfortunately a new serious bug has emerged.

using Cut on an object always crashes the IDE >Win 10

http://quality.livecode.com/show_bug.cgi?id=18810
  





-
Andy Piddock 


My software never has bugs. It just develops random features. 

Copy the new cloud space, get your free 15GB space now:
Get Copy 


Script editor Themer for LC http://2108.co.uk  

PointandSee is a FREE simple but full featured under cursor colour picker / 
finder.
http://www.pointandsee.co.uk  - made with LiveCode
--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/ANN-Release-8-1-2-RC-1-tp4710229p4710240.html
Sent from the Revolution - User mailing list archive at Nabble.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


Re: What speed advantage comes from a private handler?

2016-11-09 Thread Phil Davis

Yes.
Phil

On 11/9/16 8:18 AM, Bob Sneidar wrote:

I wasn't familiar with the dispatch function form. It's not in the dictionary. 
Do you have to use this form when dispatching to functions?

Bob S


On Nov 8, 2016, at 17:44 , Phil Davis 
> wrote:

function app_helperAppPath pAppName
dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName
return the result
end app_helperAppPath

___
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



--
Phil Davis


___
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: What speed advantage comes from a private handler?

2016-11-09 Thread Bob Sneidar
I wasn't familiar with the dispatch function form. It's not in the dictionary. 
Do you have to use this form when dispatching to functions?

Bob S


On Nov 8, 2016, at 17:44 , Phil Davis 
> wrote:

function app_helperAppPath pAppName
   dispatch function ( "_helperAppPath_" & the platform ) to me with pAppName
   return the result
end app_helperAppPath

___
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: Subject: Re: What speed advantage comes from a private handler?

2016-11-09 Thread Peter TB Brett



On 09/11/2016 16:13, Bob Sneidar wrote:

Oh! I thought private handlers were ones only accessible by handlers in the 
same script.


Private handlers are indeed only accessible by handlers in the same script.

Peter

--
Dr Peter Brett 
LiveCode Technical Project Manager

lcb-mode for Emacs: https://github.com/peter-b/lcb-mode

___
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: Subject: Re: What speed advantage comes from a private handler?

2016-11-09 Thread Bob Sneidar
Oh! I thought private handlers were ones only accessible by handlers in the 
same script. 

Bob S


> On Nov 9, 2016, at 05:07 , James Hale  wrote:
> 
> Monte wrote:
>> Private handlers are called directly rather than giving all the frontscripts 
>> a chance to handle them.
> 
> Thanks Monte,
> 
> The send and despatch restrictions do not apply in the cases I am considering.
> These are support handlers and functions outside the main handler within a 
> script library. 
> 
> James
> 
> ___
> 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: [ANN] Release 8.1.2 RC-1

2016-11-09 Thread Bob Sneidar
Nice!

Bob S


> On Nov 9, 2016, at 03:43 , Peter TB Brett  wrote:
> 
> Dear list members,
> 
> We are pleased to announce the release of LiveCode 8.1.2 RC 1.
> 
> Getting the Release
> ===
> You can get the release at https://downloads.livecode.com/livecode/ or via 
> the automatic updater.
> 
> 
> Release Contents
> 
> Fewer crashes
> -
> LiveCode was sometimes accessing objects after they had been deleted, getting 
> seriously upset as a result.  We rewrote a large chunk of the LiveCode engine 
> to stop it from doing that.  We've created mechanisms that will help us 
> detect and fix issues like this more easily.
> 
> IDE improvements
> 
> We resolved several minor but irritating bugs in the IDE and standalone 
> builder.  The tools palette and selection handles work more nicely, the 
> debugger can watch global variables, we tweaked the property inspector user 
> interface (including restoring "Resize" and "Fit Content" options to the 
> "Size" pane) and fixed the way the standalone builder places resource files.
> 
> Xcode 8.1 and iOS 10.1 support
> --
> We added support for deploying iOS 10.1 standalones using Xcode 8.1. When you 
> redeploy your app with LiveCode 8.1.2, you'll also get fixes to the native 
> scroller mobile control, in-app purchasing, and the mobile browser widget.
> 
> sqlite FTS 5
> 
> revdb's sqlite driver now supports the FTS5 full-text search engine.
> 
> 
> LiveCode 8.1.2 RC 1 contains 62 bug fixes and stability
> improvements.
> 
> The full release notes are available from:
> http://downloads.livecode.com/livecode/8_1_2/LiveCodeNotes-8_1_2_rc_1.pdf
> 
> 
> Feedback
> 
> Please report any bugs encountered on our BugZilla at
> http://quality.livecode.com/
> 
> 
> Have fun!
> The LiveCode Team
> 
> ___
> 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: Pattern Matching in Livecode

2016-11-09 Thread Peter M. Brigham
On Nov 9, 2016, at 7:46 AM, Alejandro Tejada  wrote:
> 
> Hi all,
> 
> Recently I made a very long script for searching 3 words among a list
> of 1080 lines of words.
> 
> Download the zipped stack MatchingPatternsv02
> from this forum thread:
> http://forums.livecode.com/viewtopic.php?f=7=28288
> 
> I suspect that LiveCode provides better tools for this task, but I
> don't know which are and how to use them. Maybe a simpler solution is
> to employ a regex, arrays operation or a really clever handler.
> 
> How many different methods (functions and commands) provides Livecode
> to make this task of comparing and finding 3 words (taken from a list
> of 12 words) among 1080 lines of 4 words?

Here’s one way, using some text-munching utility functions. The following is a 
longish list of handlers, but as you can see the basic function find3words() is 
pretty compact. Once you have the utilities in place in a library, they can be 
used in all different kinds of contexts to shortcut things.

You might be able to do this with a Regex expression, I don’t know, I’m 
allergic to Regex. I like to work in pure LC.

— Peter

Peter M. Brigham
pmb...@gmail.com



— the following function is not tested:

function find3words pList, pWords
   repeat with w = 1 to 3
  put line offsets(word w of pWords,pList) into A[w]
   end repeat
   put A[1] into f1
   put A[2] into f2
   put A[3] into f3
   put intersectLIsts(f1,f2) into out1
   put intersectLIsts(out1,f3) into outlist
   — now have to check that we have found whole items, not just part of a word
   repeat for each item i in outlist
  repeat with w = 1 to 3
 if not (item w of pWords is among the items of line i of pList) then 
next repeat
 put i & comma after finalList
  end repeat
   end repeat
   if finalList = empty then put 0 into finalList
   return item 1 to -1 of finalList
end find3words

function lineOffsets str, pContainer, matchWhole
   -- returns a comma-delimited list of all the lineOffsets of str
   --in pContainer
   -- if matchWhole = true then only whole lines are located
   --else finds line matches everywhere str is part of a line in pContainer
   -- duplicates are stripped out
   -- note: to get the last lineOffset of a string in a container (often useful)
   --use "item -1 of lineOffsets(...)"
   -- requires offsets()
   
   if matchWhole = empty then put false into matchWhole
   put offsets(str,pContainer) into offList
   if offList = "0" then return "0"
   repeat for each item i in offList
  put the number of lines of (char 1 to i of pContainer) into lineNbr
  if matchWhole then
 if line lineNbr of pContainer <> str then next repeat
  end if
  put 1 into A[lineNbr]
  -- using an array avoids duplicates
   end repeat
   put the keys of A into lineList
   sort lines of lineList ascending numeric
   replace cr with comma in lineList
   return lineList
end lineOffsets

function offsets str, pContainer
   -- returns a comma-delimited list of all the offsets of str in pContainer
   -- returns 0 if str is not found
   -- note: offsets("xx","xx") returns "1,3,5" not "1,2,3,4,5"
   -- ie, overlapping offsets are not counted
   -- note: to get the last occurrence of a string in a container (often useful)
   -- use "item -1 of offsets(...)"
   
   if str is not in pContainer then return 0
   put 0 into startPoint
   repeat
  put offset(str,pContainer,startPoint) into thisOffset
  if thisOffset = 0 then exit repeat
  add thisOffset to startPoint
  put startPoint & comma after offsetList
  add length(str)-1 to startPoint
   end repeat
   return item 1 to -1 of offsetList -- delete trailing comma
end offsets

function intersectLists listA, listB, pDelim
   -- returns the intersection of two lists, ie., a list of items/lines common 
to both
   -- if pDelim = empty then looks first for the presence of cr in the lists,
   --   if found, defaults to cr as the delimiter
   --if no cr found, looks for the presence of comma in the lists,
   --   if found, defaults to comma as the delimiter
   --if neither found, returns empty (user should have specified another 
delim)
   -- order of items may be changed, result may require sorting
   -- by Peter M. Brigham, pmb...@gmail.com — freeware
   --the idea of using "split tArray with pDelim and pDelim"
   --comes from Peter Hayworth on the use-LC list -- it's very clever!
   -- requires getDelimiters(), noDupes
   
   if listA = empty or listB = empty then return empty
   if pDelim = empty then
  if listA & listB contains cr then
 put cr into pDelim
  else if listA & listB contains comma then
 put comma into pDelim
  else
 return empty
  end if
   end if
   noDupes listA,pDelim
   noDupes listB,pDelim
   put getDelimiters(listA & listB) into tempDelim
   if tempDelim begins with "Error" then return "Error in getDelimiters()"
   split 

[Blog] Infinite LiveCode Progress

2016-11-09 Thread Heather Laine
Dear List Folks,

Ali Lloyd has an update for you on the hard work that has been going on behind 
the scenes on Infinite LiveCode:

https://livecode.com/infinite-livecode-java-progress/ 


Enjoy!

Regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.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


Re: Pattern Matching in Livecode

2016-11-09 Thread dunbarx
Hi.

Long handler?

Wouldn't the judicious use of the "wordOffset" function, with a little help
from the "words to skip" parameter, do this rather quickly and with just a
handful of lines of code?

I did not download your stack, but perhaps I am not understanding what you
meant?

Craig



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Pattern-Matching-in-Livecode-tp4710230p4710232.html
Sent from the Revolution - User mailing list archive at Nabble.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


Subject: Re: What speed advantage comes from a private handler?

2016-11-09 Thread James Hale
Monte wrote:
> Private handlers are called directly rather than giving all the frontscripts 
> a chance to handle them.

Thanks Monte,

The send and despatch restrictions do not apply in the cases I am considering.
These are support handlers and functions outside the main handler within a 
script library. 

James

___
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


Pattern Matching in Livecode

2016-11-09 Thread Alejandro Tejada
Hi all,

Recently I made a very long script for searching 3 words among a list
of 1080 lines of words.

Download the zipped stack MatchingPatternsv02
from this forum thread:
http://forums.livecode.com/viewtopic.php?f=7=28288

I suspect that LiveCode provides better tools for this task, but I
don't know which are and how to use them. Maybe a simpler solution is
to employ a regex, arrays operation or a really clever handler.

How many different methods (functions and commands) provides Livecode
to make this task of comparing and finding 3 words (taken from a list
of 12 words) among 1080 lines of 4 words?

Thanks in advance!

Al

___
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


[ANN] Release 8.1.2 RC-1

2016-11-09 Thread Peter TB Brett

Dear list members,

We are pleased to announce the release of LiveCode 8.1.2 RC 1.

Getting the Release
===
You can get the release at https://downloads.livecode.com/livecode/ or 
via the automatic updater.



Release Contents

Fewer crashes
-
LiveCode was sometimes accessing objects after they had been deleted, 
getting seriously upset as a result.  We rewrote a large chunk of the 
LiveCode engine to stop it from doing that.  We've created mechanisms 
that will help us detect and fix issues like this more easily.


IDE improvements

We resolved several minor but irritating bugs in the IDE and standalone 
builder.  The tools palette and selection handles work more nicely, the 
debugger can watch global variables, we tweaked the property inspector 
user interface (including restoring "Resize" and "Fit Content" options 
to the "Size" pane) and fixed the way the standalone builder places 
resource files.


Xcode 8.1 and iOS 10.1 support
--
We added support for deploying iOS 10.1 standalones using Xcode 8.1. 
When you redeploy your app with LiveCode 8.1.2, you'll also get fixes to 
the native scroller mobile control, in-app purchasing, and the mobile 
browser widget.


sqlite FTS 5

revdb's sqlite driver now supports the FTS5 full-text search engine.


LiveCode 8.1.2 RC 1 contains 62 bug fixes and stability
improvements.

The full release notes are available from:
http://downloads.livecode.com/livecode/8_1_2/LiveCodeNotes-8_1_2_rc_1.pdf


Feedback

Please report any bugs encountered on our BugZilla at
http://quality.livecode.com/


Have fun!
The LiveCode Team

___
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