Hi,
When using the rename folder command, is there a return value indicating any errors ?
Could not find this in the documentation.
Thanks
Rename folder - return result ?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Rename folder - return result ?
Hi,
did you try checking the result?
Guess it should be empty if all fine,
otherwise some indication..
HTH,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Rename folder - return result ?
What sort of errors would you envisage?
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Rename folder - return result ?
Path and permissions errors are common. File I/O is an area with so many moving parts it's very useful to not only check the result, but when not empty also check the sysError function to get the specific error code from the OS.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 9579
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Rename folder - return result ?
Hopkins.
Know that "the result" works behind the scenes giving us information about the success, failure or status of commands and functions. It is the unsung hero of the progress of LC processes. Read about it in the dictionary; it is often neglected, or worse, forgotten entirely.
Craig
Know that "the result" works behind the scenes giving us information about the success, failure or status of commands and functions. It is the unsung hero of the progress of LC processes. Read about it in the dictionary; it is often neglected, or worse, forgotten entirely.
Craig