Re: Settings Scripts from a Script in a Standalone

2012-02-04 Thread Ray Horsley
Jackie,

Thanks once again for your time on this.  Very clear now.  By the way, it seems 
like a minor things but what do those other numbers after the commas mean?

Thanks,

Ray Horsley
LinkIt! Software


On Feb 3, 2012, at 9:42 PM, J. Landman Gay wrote:

 On 2/3/12 9:23 PM, Ray Horsley wrote:
 Jackie,
 
 Thanks for this insight!  Two quickies if I may; where can I get a
 list of the code definitions returned by a try-catch and is there any
 way for me to get a list of handlers which are currently executing so
 I know not to try to update them while they're still running?
 
 The location of the error codes is listed in the dictionary under the 
 errorDialog entry, along with instructions on how to get them. You can grab 
 them and stick them in a reference somewhere if you want:
 
 get the cErrorsList of card 1 of stack revErrorDisplay
 
 The same dictionary entry also explains what all the numbers mean.
 
 I have a lookup stack I made that I use as a plugin for this, which is how I 
 looked up your error codes. I was meaning to upload it to RevOnline until I 
 got locked out. I seem to be able to get back in there now so I'll upload it 
 one of these days.
 
 In the mean time you can just grab that list and put it into a text file or a 
 stack field.
 
 I'm not sure how you get a list of running handlers. Generally it isn't an 
 issue because they run sequentially and don't usually overlap. One exception 
 is when one handler calls another, which calls the original again. That may 
 be what you're seeing. If you do that too much you get a recursion error.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.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: Settings Scripts from a Script in a Standalone

2012-02-04 Thread Mark Schonewille
Hi Ray,

The first number is the error code, the second is the line on which the number 
happened and the third number is the character position of the faulty code. 
This is often but not always followed by a word indicating that faulty code.

Usually there are mutliple lines in a raw error message. These lines indicate 
the message path to the faulty code and possible errors that might have 
occurred along the way.

I made a little iPhone app that makes it possible to look up error codes. This 
is useful if LiveCode freezes for example, or if you don't want to write a 
script to look up the error. You can find the app in the iTunes store at 
http://qery.us/v4

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 4 feb 2012, at 16:24, Ray Horsley wrote:

 Jackie,
 
 Thanks once again for your time on this.  Very clear now.  By the way, it 
 seems like a minor things but what do those other numbers after the commas 
 mean?
 
 Thanks,
 
 Ray Horsley
 LinkIt! Software
 


___
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: Settings Scripts from a Script in a Standalone

2012-02-04 Thread Ray Horsley
Mark - Many thanks.  Cool app.  Thanks for your help on this too Jackie.

On Feb 4, 2012, at 8:35 AM, Mark Schonewille wrote:

 Hi Ray,
 
 The first number is the error code, the second is the line on which the 
 number happened and the third number is the character position of the faulty 
 code. This is often but not always followed by a word indicating that faulty 
 code.
 
 Usually there are mutliple lines in a raw error message. These lines indicate 
 the message path to the faulty code and possible errors that might have 
 occurred along the way.
 
 I made a little iPhone app that makes it possible to look up error codes. 
 This is useful if LiveCode freezes for example, or if you don't want to write 
 a script to look up the error. You can find the app in the iTunes store at 
 http://qery.us/v4
 
 --
 Best regards,
 
 Mark Schonewille
 
 Economy-x-Talk Consulting and Software Engineering
 Homepage: http://economy-x-talk.com
 Twitter: http://twitter.com/xtalkprogrammer
 KvK: 50277553
 
 Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
 
 On 4 feb 2012, at 16:24, Ray Horsley wrote:
 
 Jackie,
 
 Thanks once again for your time on this.  Very clear now.  By the way, it 
 seems like a minor things but what do those other numbers after the commas 
 mean?
 
 Thanks,
 
 Ray Horsley
 LinkIt! Software
 
 
 
 ___
 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


Settings Scripts from a Script in a Standalone

2012-02-03 Thread Ray Horsley

I've just noticed that in 5.0.2 a line in an idle handler script which sets the 
script of another stack is now failing.  There's nothing in the result when it 
fails, although I do get a rather cryptic return if I put it in a try-catch 
(below).  The rest of the idle handler simply stops running.  The content of 
the script being set is only three lines long so I'm sure it doesn't exceed 
Livecode's limit (which I believe is 10 lines).  As a matter of fact, if I run 
the same handle from a button in the standalone it works fine.

Here's the try-catch error:
360,0,0
90,96,22
449,96,7,on idle
535,96,1,on idle

Here's the script:
   put on myHandler into tmpScript
   put send numToChar(34)doIdlenumToChar(34) to stack 
numToChar(34)•Panels Shell•numToChar(34) into line 2 of tmpScript
   put end myHandler  into line 3 of tmpScript
   set the script of stack Panels to tmpScript
  
Any ideas?

Ray Horsley
LinkIt! Software
___
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: Settings Scripts from a Script in a Standalone

2012-02-03 Thread J. Landman Gay

On 2/3/12 5:32 PM, Ray Horsley wrote:


I've just noticed that in 5.0.2 a line in an idle handler script which sets the 
script of another stack is now failing.  There's nothing in the result when it 
fails, although I do get a rather cryptic return if I put it in a try-catch 
(below).  The rest of the idle handler simply stops running.  The content of 
the script being set is only three lines long so I'm sure it doesn't exceed 
Livecode's limit (which I believe is 10 lines).  As a matter of fact, if I run 
the same handle from a button in the standalone it works fine.

Here's the try-catch error:
360,0,0
90,96,22
449,96,7,on idle
535,96,1,on idle

Here's the script:
put on myHandler into tmpScript
put send numToChar(34)doIdlenumToChar(34) to stacknumToChar(34)•Panels 
Shell•numToChar(34) into line 2 of tmpScript
put end myHandler  into line 3 of tmpScript
set the script of stack Panels to tmpScript

Any ideas?



360 Object: can't set script while it is executing
90  Chunk: can't set property
449 Object: can't set object property
535 set: can't set property


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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: Settings Scripts from a Script in a Standalone

2012-02-03 Thread Ray Horsley
Jackie,

Thanks for this insight!  Two quickies if I may; where can I get a list of the 
code definitions returned by a try-catch and is there any way for me to get a 
list of handlers which are currently executing so I know not to try to update 
them while they're still running?

Thanks,

Ray Horsley
LinkIt! Software

On Feb 3, 2012, at 4:45 PM, J. Landman Gay wrote:

 On 2/3/12 5:32 PM, Ray Horsley wrote:
 
 I've just noticed that in 5.0.2 a line in an idle handler script which sets 
 the script of another stack is now failing.  There's nothing in the result 
 when it fails, although I do get a rather cryptic return if I put it in a 
 try-catch (below).  The rest of the idle handler simply stops running.  The 
 content of the script being set is only three lines long so I'm sure it 
 doesn't exceed Livecode's limit (which I believe is 10 lines).  As a matter 
 of fact, if I run the same handle from a button in the standalone it works 
 fine.
 
 Here's the try-catch error:
 360,0,0
 90,96,22
 449,96,7,on idle
 535,96,1,on idle
 
 Here's the script:
put on myHandler into tmpScript
put send numToChar(34)doIdlenumToChar(34) to 
 stacknumToChar(34)•Panels Shell•numToChar(34) into line 2 of 
 tmpScript
put end myHandler  into line 3 of tmpScript
set the script of stack Panels to tmpScript
 
 Any ideas?
 
 
 360   Object: can't set script while it is executing
 90Chunk: can't set property
 449   Object: can't set object property
 535   set: can't set property
 
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.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: Settings Scripts from a Script in a Standalone

2012-02-03 Thread J. Landman Gay

On 2/3/12 9:23 PM, Ray Horsley wrote:

Jackie,

Thanks for this insight!  Two quickies if I may; where can I get a
list of the code definitions returned by a try-catch and is there any
way for me to get a list of handlers which are currently executing so
I know not to try to update them while they're still running?


The location of the error codes is listed in the dictionary under the 
errorDialog entry, along with instructions on how to get them. You can 
grab them and stick them in a reference somewhere if you want:


 get the cErrorsList of card 1 of stack revErrorDisplay

The same dictionary entry also explains what all the numbers mean.

I have a lookup stack I made that I use as a plugin for this, which is 
how I looked up your error codes. I was meaning to upload it to 
RevOnline until I got locked out. I seem to be able to get back in there 
now so I'll upload it one of these days.


In the mean time you can just grab that list and put it into a text file 
or a stack field.


I'm not sure how you get a list of running handlers. Generally it isn't 
an issue because they run sequentially and don't usually overlap. One 
exception is when one handler calls another, which calls the original 
again. That may be what you're seeing. If you do that too much you get a 
recursion error.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.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