Re: Set the script of... not working ???

2007-02-09 Thread David Bovill

That could not be the problem, because:

  put the number of chars of someScript
  set the script of scriptObject to empty  -- exit here!
  put someScript

The script could not be set to empty? Also I gave up trying to figure
may way round this and instead used the same scripts to set the text
of a field in the script editor - only compiling the script at the
very end.

It makes no sense - as the script editor clearly must be able to set
the script - but good to know there is no known bug here. All very
strange! But thanks for the advice.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Set the script of... not working ???

2007-02-08 Thread David Bovill

I have a script which is trying to delete handlers from a library -
here are the lines that are not working:

   put the script of scriptObject into someScript
   delete char startChar to endChar of someScript

   put the number of chars of someScript
   set the script of scriptObject to empty
   put someScript
   set the script of scriptObject to someScript

   put merge(Deleted handler '[[handlerName]]'!)

In the message box I get:

  70641

That is the script exits and is not able to set the script to empty or
to anything else. I have never come across this before - but it is a
large script - is there a limit to the how large a script can be for
this to work ???
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Set the script of... not working ???

2007-02-08 Thread Jim Ault
My quick guess is that one or more of your handlers make Rev think that the
script cannot be edited and applied.  If you manually open the script editor
for this object, add a character and then apply, are you successful?

Jim Ault
Las Vegas


On 2/8/07 9:10 AM, David Bovill [EMAIL PROTECTED] wrote:

 I have a script which is trying to delete handlers from a library -
 here are the lines that are not working:
 
 put the script of scriptObject into someScript
 delete char startChar to endChar of someScript
 
 put the number of chars of someScript
 set the script of scriptObject to empty
 put someScript
 set the script of scriptObject to someScript
 
 put merge(Deleted handler '[[handlerName]]'!)
 
 In the message box I get:
 
70641
 
 That is the script exits and is not able to set the script to empty or
 to anything else. I have never come across this before - but it is a
 large script - is there a limit to the how large a script can be for
 this to work ???


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


Re: Set the script of... not working ???

2007-02-08 Thread Chipp Walters

Yeah, I think Jim is correct. Instead of setting the script, copy it
to the clipboard, then create a new button and try pasting it in and
see if it compiles.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution