Page 1 of 1
Rename folder - return result ?
Posted: Sun Jun 28, 2020 9:03 am
by hopkins
Hi,
When using the rename folder command, is there a return value indicating any errors ?
Could not find this in the documentation.
Thanks
Re: Rename folder - return result ?
Posted: Sun Jun 28, 2020 9:34 am
by Thierry
hopkins wrote: ↑Sun Jun 28, 2020 9:03 am
When using the rename folder command, is there a return value indicating any errors ?
Hi,
did you try checking the result?
Guess it should be empty if all fine,
otherwise some indication..
HTH,
Thierry
Re: Rename folder - return result ?
Posted: Sun Jun 28, 2020 10:07 am
by richmond62
What sort of errors would you envisage?
Re: Rename folder - return result ?
Posted: Sun Jun 28, 2020 6:04 pm
by FourthWorld
richmond62 wrote: ↑Sun Jun 28, 2020 10:07 am
What sort of errors would you envisage?
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.
Re: Rename folder - return result ?
Posted: Sun Jun 28, 2020 6:18 pm
by dunbarx
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