Rename folder - return result ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hopkins
Posts: 41
Joined: Wed Nov 28, 2018 11:09 am

Rename folder - return result ?

Post by hopkins » Sun Jun 28, 2020 9:03 am

Hi,

When using the rename folder command, is there a return value indicating any errors ?
Could not find this in the documentation.

Thanks

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Rename folder - return result ?

Post by Thierry » Sun Jun 28, 2020 9:34 am

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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Rename folder - return result ?

Post by richmond62 » Sun Jun 28, 2020 10:07 am

What sort of errors would you envisage?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Rename folder - return result ?

Post by FourthWorld » Sun Jun 28, 2020 6:04 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Rename folder - return result ?

Post by dunbarx » Sun Jun 28, 2020 6:18 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”