revCopyFolder

Jeanne A. E. DeVoto jeanne at runrev.com
Sun Jul 21 01:40:01 EDT 2002


At 1:30 PM -0700 7/16/2002, Richard Hillen wrote:
>on mouseup
>  answer folder "Sourcefolder please"
>  put it into SF
>  answer Folder "Destinationfolder please"
>  put it into DF
>  revCopyFolder SF,DF
>  put the result
>end mouseup
>
>The result: "Execution error".
>
>Why?

The problem is your second "answer folder" command. What you're ending up
doing here is asking the user for an already-existing folder as the
destination, so revCopyFolder is trying to create a folder that already
exists.

You can do one of two things:

1) Use "ask file" instead of "answer folder" for the destination, allowing
the user to name the folder.

2) If you don't want to let the user name the copy - just make a duplicate
with the same name - then leave the second "answer folder" command as is,
and append the name of the source folder to the end of the variable "DF".

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list