SHFileOperation returns non-zero code in case of error or when user canceled operation. You can check for user cancelation as follow
? ASC(SUBSTR(lcFileOpStruct,19,1))
>I'm using SHFileOperation to copy, delete and rename files, but when user cancel the operation, this function return the same value of succesfully operation.
>What can I do to know if user has canceled operation?
>
--sb--