Dear Mark,

Thanks for the guidance. Both your version and mine just stopped at the line


clone stack "resource_template"

That line is executed (and the resource_template stack is cloned), but the
next line is not.

I just tried inserting "Lock messages" before the "clone stack" command and
now it is ok. It struck me that there may have been another window message
handler being triggered that was interrupting the process.

Hmmmmm. 

Regards

John


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Schonewille
Sent: Wednesday, 10 September 2008 7:57 PM
To: How to use Revolution
Subject: Re: Rev 3.0 Cloning problem

Hi John,

The correct procedure is:

clone stack "resouce_template"
put it into myTempStackID
-- do other stuff here
set the name of myTempStackID to myStackName

You don't need the keyword "stack" before the variable containing the  
long ID of the new stack.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
http://facebook.economy-x-talk.com

Benefit from our inexpensive hosting services. See
http://economy-x-talk.com/server.html 
  for more info.

On 10 sep 2008, at 06:55, John Tregea wrote:

> Hi Fellow Rev'ers,
>
> I have been trying out Rev 3.0 across a number of iterations and  
> recently came across a problem (3.0gm Build 750).
>
> I have a piece of code that makes a clone of a stack, renames it and  
> then populates the new version of the stack with data from a  
> database. This has worked fine in 2.8, 2.9 and earlier iterations of  
> 3.0.
>
> The problem is that when the script gets to the clone command it  
> performs that line then just exits as if there is no more code. No  
> error is returned. Anyone seen this behaviour?
>
> The code looks like this.
>
> ifthereisnotastack tTheStack
> then
> clonestack"resource_template"
> send"choose browse tool"tomein1tick
> setthenameofstack it to tTheStack
> endif
>
> The variable tTheStack contains the name for the new stack. In debug  
> mode the variable is correctly populated, the stack IS cloned, then  
> the script just exits.
>
> Any help would be appreciated
>
> Regards
>
> John Tregea

_______________________________________________
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


_______________________________________________
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

Reply via email to